Commit 9053fc91 authored by Al Viro's avatar Al Viro
Browse files

omapfb: get rid of pointless access_ok() calls



address is passed only to copy_to_user()

Acked-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 694b9a71
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;