patch-2.3.6 linux/drivers/scsi/sd.c
Next file: linux/drivers/scsi/sg.c
Previous file: linux/drivers/scsi/scsicam.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Mon Jun 7 16:50:56 1999
- Orig file:
v2.3.5/linux/drivers/scsi/sd.c
- Orig date:
Fri May 14 18:55:22 1999
diff -u --recursive --new-file v2.3.5/linux/drivers/scsi/sd.c linux/drivers/scsi/sd.c
@@ -1729,7 +1729,7 @@
static void sd_detach(Scsi_Device * SDp)
{
Scsi_Disk * dpnt;
- int i;
+ int i, j;
int max_p;
int start;
@@ -1741,8 +1741,8 @@
max_p = sd_gendisk.max_p;
start = i << sd_gendisk.minor_shift;
- for (i=max_p - 1; i >=0 ; i--) {
- int index = start+i;
+ for (j=max_p - 1; j >=0 ; j--) {
+ int index = start+j;
kdev_t devi = MKDEV_SD_PARTITION(index);
struct super_block *sb = get_super(devi);
sync_dev(devi);
@@ -1759,7 +1759,7 @@
SDp->attached--;
sd_template.dev_noticed--;
sd_template.nr_dev--;
- SD_GENDISK(start).nr_real--;
+ SD_GENDISK(i).nr_real--;
return;
}
return;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)