[PATCH] SCSI slab poison fix for 2.3.99pre2

From: Andi Kleen (ak@suse.de)
Date: Thu Mar 23 2000 - 13:53:58 EST


This patch makes 2.3.99pre2 with SCSI boot again when kmalloc uses SLAB_POISON.

Cause should be obvious.

Linus, please apply.

-Andi

--- linux/drivers/scsi/scsi.c-o Wed Mar 15 20:27:13 2000
+++ linux/drivers/scsi/scsi.c Thu Mar 23 18:46:45 2000
@@ -1377,12 +1377,12 @@
  */
 void scsi_release_commandblocks(Scsi_Device * SDpnt)
 {
- Scsi_Cmnd *SCpnt;
+ Scsi_Cmnd *SCpnt, *SCnext;
         unsigned long flags;
 
- spin_lock_irqsave(&device_request_lock, flags);
- for (SCpnt = SDpnt->device_queue; SCpnt; SCpnt = SCpnt->next) {
- SDpnt->device_queue = SCpnt->next;
+ spin_lock_irqsave(&device_request_lock, flags);
+ for (SCpnt = SDpnt->device_queue; SCpnt; SCpnt = SCnext) {
+ SDpnt->device_queue = SCnext = SCpnt->next;
                 kfree((char *) SCpnt);
         }
         SDpnt->has_cmdblocks = 0;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:38 EST