diff options
author | Maxim Shchetynin <maxim@de.ibm.com> | 2007-08-22 17:01:28 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-08-25 06:58:27 (GMT) |
commit | b0e81ebb1062eba20fbcbe459662c0a6ec6075f7 (patch) | |
tree | 6c30bfaf5f3b149783e8e138466ef3d6bb2db817 /arch/powerpc/sysdev/axonram.c | |
parent | fedcd2c53d838e7a69df699ce2a14e45d34d7f7f (diff) | |
download | linux-fsl-qoriq-b0e81ebb1062eba20fbcbe459662c0a6ec6075f7.tar.xz |
[POWERPC] axonram: Do not delete gendisks queue in error path
On exit do not delete gendisk's queue because this is already done by
del_gendisk(). Doing it twice may cause memory damage.
Signed-off-by: Maximilian <maxim@de.ibm.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/sysdev/axonram.c')
-rw-r--r-- | arch/powerpc/sysdev/axonram.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/powerpc/sysdev/axonram.c b/arch/powerpc/sysdev/axonram.c index eabbf82..ab037a3 100644 --- a/arch/powerpc/sysdev/axonram.c +++ b/arch/powerpc/sysdev/axonram.c @@ -281,8 +281,6 @@ failed: if (bank->irq_id != NO_IRQ) free_irq(bank->irq_id, device); if (bank->disk != NULL) { - if (bank->disk->queue != NULL) - blk_cleanup_queue(bank->disk->queue); if (bank->disk->major > 0) unregister_blkdev(bank->disk->major, bank->disk->disk_name); @@ -310,7 +308,6 @@ axon_ram_remove(struct of_device *device) device_remove_file(&device->dev, &dev_attr_ecc); free_irq(bank->irq_id, device); - blk_cleanup_queue(bank->disk->queue); unregister_blkdev(bank->disk->major, bank->disk->disk_name); del_gendisk(bank->disk); iounmap((void __iomem *) bank->io_addr); |