patch-2.4.5 linux/drivers/scsi/scsi.c
Next file: linux/drivers/scsi/scsi_lib.c
Previous file: linux/drivers/scsi/qlogicfas.c
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Thu May 24 15:34:14 2001
- Orig file:
v2.4.4/linux/drivers/scsi/scsi.c
- Orig date:
Wed Apr 25 16:18:54 2001
diff -u --recursive --new-file v2.4.4/linux/drivers/scsi/scsi.c linux/drivers/scsi/scsi.c
@@ -104,7 +104,7 @@
const unsigned char scsi_command_size[8] =
{
6, 10, 10, 12,
- 16, 12, 10, 10
+ 12, 12, 10, 10
};
static unsigned long serial_number;
static Scsi_Cmnd *scsi_bh_queue_head;
@@ -843,7 +843,7 @@
*/
scsi_insert_special_req(SRpnt, 0);
- SCSI_LOG_MLQUEUE(3, printk("Leaving scsi_do_cmd()\n"));
+ SCSI_LOG_MLQUEUE(3, printk("Leaving scsi_do_req()\n"));
}
/*
@@ -929,7 +929,7 @@
SCpnt->abort_reason = 0;
SCpnt->result = 0;
- SCSI_LOG_MLQUEUE(3, printk("Leaving scsi_do_cmd()\n"));
+ SCSI_LOG_MLQUEUE(3, printk("Leaving scsi_init_cmd_from_req()\n"));
}
/*
@@ -1572,6 +1572,11 @@
copy_from_user(buffer, buf, length);
err = -EINVAL;
+ if (length < PAGE_SIZE)
+ buffer[length] ='\0';
+ else if (buffer[length])
+ goto out;
+
if (length < 11 || strncmp("scsi", buffer, 4))
goto out;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)