diff options
author | Matthew Wilcox <matthew@wil.cx> | 2007-08-15 14:56:58 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-10-12 14:51:10 -0400 |
commit | 34f8f0d294423a7e2ef84a741890b1bfa317aa4e (patch) | |
tree | fe4c09f6a8dd2e5fa2566a59fa8fd0e97fc04b69 /drivers/scsi/ibmmca.c | |
parent | a57b1fccdfa65b78481f5e651833d979e545de04 (diff) |
[SCSI] ibmmca: Stop leaking scsi_hosts on exit
There was a missing call to scsi_host_put() causing us to leak a scsi
host every time this module was unloaded.
Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/ibmmca.c')
-rw-r--r-- | drivers/scsi/ibmmca.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/ibmmca.c b/drivers/scsi/ibmmca.c index 4275d1b04ced..82f116aea82b 100644 --- a/drivers/scsi/ibmmca.c +++ b/drivers/scsi/ibmmca.c | |||
@@ -1693,6 +1693,7 @@ static int __devexit ibmmca_remove(struct device *dev) | |||
1693 | scsi_remove_host(shpnt); | 1693 | scsi_remove_host(shpnt); |
1694 | release_region(shpnt->io_port, shpnt->n_io_port); | 1694 | release_region(shpnt->io_port, shpnt->n_io_port); |
1695 | free_irq(shpnt->irq, dev); | 1695 | free_irq(shpnt->irq, dev); |
1696 | scsi_host_put(shpnt); | ||
1696 | return 0; | 1697 | return 0; |
1697 | } | 1698 | } |
1698 | 1699 | ||