mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 01:51:53 +00:00
omapfb: get rid of pointless access_ok() calls
address is passed only to copy_to_user() Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
694b9a7157
commit
9053fc91e3
@ -482,9 +482,6 @@ static int omapfb_memory_read(struct fb_info *fbi,
|
||||
if (!display || !display->driver->memory_read)
|
||||
return -ENOENT;
|
||||
|
||||
if (!access_ok(mr->buffer, mr->buffer_size))
|
||||
return -EFAULT;
|
||||
|
||||
if (mr->w > 4096 || mr->h > 4096)
|
||||
return -EINVAL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user