Skip to content

Commit 694b9a7

Browse files
author
Al Viro
committed
amifb: get rid of pointless access_ok() calls
addresses passed only to get_user() and put_user() Signed-off-by: Al Viro <[email protected]>
1 parent 83a4f2e commit 694b9a7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/video/fbdev/amifb.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,8 +1855,6 @@ static int ami_get_var_cursorinfo(struct fb_var_cursorinfo *var,
18551855
var->yspot = par->crsr.spot_y;
18561856
if (size > var->height * var->width)
18571857
return -ENAMETOOLONG;
1858-
if (!access_ok(data, size))
1859-
return -EFAULT;
18601858
delta = 1 << par->crsr.fmode;
18611859
lspr = lofsprite + (delta << 1);
18621860
if (par->bplcon0 & BPC0_LACE)
@@ -1935,8 +1933,6 @@ static int ami_set_var_cursorinfo(struct fb_var_cursorinfo *var,
19351933
return -EINVAL;
19361934
if (!var->height)
19371935
return -EINVAL;
1938-
if (!access_ok(data, var->width * var->height))
1939-
return -EFAULT;
19401936
delta = 1 << fmode;
19411937
lofsprite = shfsprite = (u_short *)spritememory;
19421938
lspr = lofsprite + (delta << 1);

0 commit comments

Comments
 (0)