Skip to content

Commit 9053fc9

Browse files
author
Al Viro
committed
omapfb: get rid of pointless access_ok() calls
address is passed only to copy_to_user() Acked-by: Bartlomiej Zolnierkiewicz <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent 694b9a7 commit 9053fc9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,6 @@ static int omapfb_memory_read(struct fb_info *fbi,
482482
if (!display || !display->driver->memory_read)
483483
return -ENOENT;
484484

485-
if (!access_ok(mr->buffer, mr->buffer_size))
486-
return -EFAULT;
487-
488485
if (mr->w > 4096 || mr->h > 4096)
489486
return -EINVAL;
490487

0 commit comments

Comments
 (0)