mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-16 07:35:14 +00:00
[PATCH] cciss: bug fix in cciss_remove_one
This patch fixes a bug in cciss_remove_one. A set of braces was missing for the if statement causing an Oops on driver unload. Signed-off-by: Mike Miller <mike.miller@hp.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
33079b2197
commit
6a445d3ba6
1 changed files with 3 additions and 2 deletions
|
@ -3095,9 +3095,10 @@ static void __devexit cciss_remove_one (struct pci_dev *pdev)
|
||||||
/* remove it from the disk list */
|
/* remove it from the disk list */
|
||||||
for (j = 0; j < NWD; j++) {
|
for (j = 0; j < NWD; j++) {
|
||||||
struct gendisk *disk = hba[i]->gendisk[j];
|
struct gendisk *disk = hba[i]->gendisk[j];
|
||||||
if (disk->flags & GENHD_FL_UP)
|
if (disk->flags & GENHD_FL_UP) {
|
||||||
blk_cleanup_queue(disk->queue);
|
|
||||||
del_gendisk(disk);
|
del_gendisk(disk);
|
||||||
|
blk_cleanup_queue(disk->queue);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pci_free_consistent(hba[i]->pdev, NR_CMDS * sizeof(CommandList_struct),
|
pci_free_consistent(hba[i]->pdev, NR_CMDS * sizeof(CommandList_struct),
|
||||||
|
|
Loading…
Reference in a new issue