Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328823
b: refs/heads/master
c: e3f2a9c
h: refs/heads/master
i:
  328821: 600135e
  328819: 20f9efd
  328815: 4f66016
v: v3
  • Loading branch information
Jeff Mahoney authored and James Bottomley committed Sep 14, 2012
1 parent 3ed1023 commit b949352
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: af23782beff27e720318fc44495287b9961a88e1
refs/heads/master: e3f2a9cc84d35fac73c906de57ad3b3f5ff82008
11 changes: 4 additions & 7 deletions trunk/drivers/scsi/st.c
Original file line number Diff line number Diff line change
Expand Up @@ -4156,6 +4156,7 @@ static int st_probe(struct device *dev)
printk(KERN_ERR
"st%d: out of memory. Device not attached.\n",
dev_num);
cdev_del(cdev);
goto out_free_tape;
}
cdev->owner = THIS_MODULE;
Expand Down Expand Up @@ -4194,17 +4195,13 @@ static int st_probe(struct device *dev)
"tape");
for (j=0; j < 2; j++) {
if (STm->cdevs[j]) {
if (cdev == STm->cdevs[j])
cdev = NULL;
device_destroy(&st_sysfs_class,
MKDEV(SCSI_TAPE_MAJOR,
TAPE_MINOR(i, mode, j)));
device_destroy(&st_sysfs_class,
MKDEV(SCSI_TAPE_MAJOR,
TAPE_MINOR(i, mode, j)));
cdev_del(STm->cdevs[j]);
}
}
}
if (cdev)
cdev_del(cdev);
write_lock(&st_dev_arr_lock);
scsi_tapes[dev_num] = NULL;
st_nr_dev--;
Expand Down

0 comments on commit b949352

Please sign in to comment.