Commit 363df3994f034e7fe87d146fcf19f6a3ab2a2291

Authored by Michael Hennerich
Committed by Linus Torvalds
1 parent 7ef9861c74

blackfin video driver: fix bug when opening/reading/mmaping BF54x and BF52x fram…

…ebuffer 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>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

drivers/video/bf54x-lq043fb.c
... ... @@ -384,7 +384,7 @@
384 384 * Other flags can be set, and are documented in
385 385 * include/linux/mm.h
386 386 */
387   - vma->vm_flags |= VM_MAYSHARE;
  387 + vma->vm_flags |= VM_MAYSHARE | VM_SHARED;
388 388  
389 389 return 0;
390 390 }
drivers/video/bfin-t350mcqb-fb.c
... ... @@ -302,7 +302,7 @@
302 302 * Other flags can be set, and are documented in
303 303 * include/linux/mm.h
304 304 */
305   - vma->vm_flags |= VM_MAYSHARE;
  305 + vma->vm_flags |= VM_MAYSHARE | VM_SHARED;
306 306  
307 307 return 0;
308 308 }