diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-03-16 15:10:06 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-03-16 15:10:06 -0800 |
| commit | a1587fdef5a88b9fc3e57d997704a74c04b06cda (patch) | |
| tree | 7f072a6379dc7be53455d6e0be5ba44176e1bfa2 /drivers | |
| parent | 96d169c2d4579743f3ef0b7d061c43489c812d01 (diff) | |
[PATCH] cpqarray: rmmod oops fix
From: <mikem@beardog.cca.cpqcorp.net>
* Fix for segmentation fault when calling rmmod
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/block/cpqarray.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/cpqarray.c b/drivers/block/cpqarray.c index 887d8bb60f19..e841f97d4427 100644 --- a/drivers/block/cpqarray.c +++ b/drivers/block/cpqarray.c @@ -300,7 +300,6 @@ static void __exit cpqarray_exit(void) iounmap(hba[i]->vaddr); unregister_blkdev(COMPAQ_SMART2_MAJOR+i, hba[i]->devname); del_timer(&hba[i]->timer); - blk_cleanup_queue(hba[i]->queue); remove_proc_entry(hba[i]->devname, proc_array); pci_free_consistent(hba[i]->pci_dev, NR_CMDS * sizeof(cmdlist_t), (hba[i]->cmd_pool), @@ -313,6 +312,7 @@ static void __exit cpqarray_exit(void) devfs_remove("ida/c%dd%d",i,j); put_disk(ida_gendisk[i][j]); } + blk_cleanup_queue(hba[i]->queue); } devfs_remove("ida"); remove_proc_entry("cpqarray", proc_root_driver); |
