patch-1.3.16 linux/drivers/scsi/sg.c

Next file: linux/drivers/scsi/sr_ioctl.c
Previous file: linux/drivers/scsi/scsi.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.15/linux/drivers/scsi/sg.c linux/drivers/scsi/sg.c
@@ -77,7 +77,7 @@
     switch(cmd_in)
     {
     case SG_SET_TIMEOUT:
-        result = verify_area(VERIFY_READ, arg, sizeof(long));
+        result = verify_area(VERIFY_READ, (const void *)arg, sizeof(long));
         if (result) return result;
 
 	scsi_generics[dev].timeout=get_user((int *) arg);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this