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

Next file: linux/drivers/char/pcxx.c
Previous file: linux/arch/i386/kernel/vm86.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.27/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;
 
    memcpy_fromfs(&schi, (char *) arg, sizeof(schi));

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