aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/bf54x-lq043fb.c
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2008-03-28 14:16:06 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-03-28 14:45:22 -0700
commit363df3994f034e7fe87d146fcf19f6a3ab2a2291 (patch)
tree43e88e56df7f9649777958128d68682e38776878 /drivers/video/bf54x-lq043fb.c
parent7ef9861c7496185e96fb0a3b57ff0b4880876d0a (diff)
downloadkernel_samsung_smdk4412-363df3994f034e7fe87d146fcf19f6a3ab2a2291.zip
kernel_samsung_smdk4412-363df3994f034e7fe87d146fcf19f6a3ab2a2291.tar.gz
kernel_samsung_smdk4412-363df3994f034e7fe87d146fcf19f6a3ab2a2291.tar.bz2
blackfin video driver: fix bug when opening/reading/mmaping BF54x and BF52x framebuffer simultaneously
http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=3974 opening/reading/mmaping BF54x and BF52x framebuffer simultaneously triggers BUG: failure at mm/nommu.c:470/add_nommu_vma() Add VM_SHARED to the default vm_flags Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Bryan Wu <cooloney@kernel.org> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: "Antonino A. Daplas" <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/bf54x-lq043fb.c')
-rw-r--r--drivers/video/bf54x-lq043fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/bf54x-lq043fb.c b/drivers/video/bf54x-lq043fb.c
index 986a550..eefba3d 100644
--- a/drivers/video/bf54x-lq043fb.c
+++ b/drivers/video/bf54x-lq043fb.c
@@ -384,7 +384,7 @@ static int bfin_bf54x_fb_mmap(struct fb_info *info, struct vm_area_struct *vma)
* Other flags can be set, and are documented in
* include/linux/mm.h
*/
- vma->vm_flags |= VM_MAYSHARE;
+ vma->vm_flags |= VM_MAYSHARE | VM_SHARED;
return 0;
}