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

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

diff -u --recursive --new-file v1.3.3/linux/drivers/scsi/sg.c linux/drivers/scsi/sg.c
@@ -71,7 +71,7 @@
   switch(cmd_in)
    {
     case SG_SET_TIMEOUT:
-     scsi_generics[dev].timeout=get_fs_long((int *) arg);
+     scsi_generics[dev].timeout=get_user((int *) arg);
      return 0;
     case SG_GET_TIMEOUT:
      return scsi_generics[dev].timeout;
@@ -289,7 +289,7 @@
   /* now issue command */
   SCpnt->request.dev=dev;
   SCpnt->sense_buffer[0]=0;
-  opcode = get_fs_byte(buf);
+  opcode = get_user(buf);
   size=COMMAND_SIZE(opcode);
   if (opcode >= 0xc0 && device->header.twelve_byte) size = 12;
   SCpnt->cmd_len = size;

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