patch-2.1.15 linux/drivers/cdrom/cdu31a.c

Next file: linux/drivers/char/ChangeLog
Previous file: linux/drivers/block/ps2esdi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.14/linux/drivers/cdrom/cdu31a.c linux/drivers/cdrom/cdu31a.c
@@ -1979,8 +1979,7 @@
       return -EIO;
    }
 
-   err = verify_area(VERIFY_READ, (char *) arg, sizeof(schi)) ||
-         verify_area(VERIFY_WRITE, (char *) arg, sizeof(schi));
+   err = verify_area(VERIFY_WRITE, (char *) arg, sizeof(schi));
    if (err) return err;
 
    copy_from_user(&schi, (char *) arg, sizeof(schi));

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov