patch-2.1.44 linux/drivers/block/floppy.c
Next file: linux/drivers/block/ide.c
Previous file: linux/arch/sparc64/vmlinux.lds
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Sun Jun 29 10:51:09 1997
- Orig file:
v2.1.43/linux/drivers/block/floppy.c
- Orig date:
Tue May 13 22:41:04 1997
diff -u --recursive --new-file v2.1.43/linux/drivers/block/floppy.c linux/drivers/block/floppy.c
@@ -2896,6 +2896,8 @@
raw_cmd->flags |= FD_RAW_HARDFAILURE;
} else {
raw_cmd->reply_count = inr;
+ if(raw_cmd->reply_count > MAX_REPLIES)
+ raw_cmd->reply_count=0;
for (i=0; i< raw_cmd->reply_count; i++)
raw_cmd->reply[i] = reply_buffer[i];
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov