File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -1855,8 +1855,6 @@ static int ami_get_var_cursorinfo(struct fb_var_cursorinfo *var,
1855
1855
var -> yspot = par -> crsr .spot_y ;
1856
1856
if (size > var -> height * var -> width )
1857
1857
return - ENAMETOOLONG ;
1858
- if (!access_ok (data , size ))
1859
- return - EFAULT ;
1860
1858
delta = 1 << par -> crsr .fmode ;
1861
1859
lspr = lofsprite + (delta << 1 );
1862
1860
if (par -> bplcon0 & BPC0_LACE )
@@ -1935,8 +1933,6 @@ static int ami_set_var_cursorinfo(struct fb_var_cursorinfo *var,
1935
1933
return - EINVAL ;
1936
1934
if (!var -> height )
1937
1935
return - EINVAL ;
1938
- if (!access_ok (data , var -> width * var -> height ))
1939
- return - EFAULT ;
1940
1936
delta = 1 << fmode ;
1941
1937
lofsprite = shfsprite = (u_short * )spritememory ;
1942
1938
lspr = lofsprite + (delta << 1 );
You can’t perform that action at this time.
0 commit comments