From: Matthew Wilcox Date: Wed, 15 Aug 2007 18:56:58 +0000 (-0600) Subject: [SCSI] ibmmca: Stop leaking scsi_hosts on exit X-Git-Tag: v2.6.24-rc1~1290^2~73 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34f8f0d294423a7e2ef84a741890b1bfa317aa4e;p=platform%2Fkernel%2Flinux-3.10.git [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 Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/ibmmca.c b/drivers/scsi/ibmmca.c index 4275d1b..82f116a 100644 --- a/drivers/scsi/ibmmca.c +++ b/drivers/scsi/ibmmca.c @@ -1693,6 +1693,7 @@ static int __devexit ibmmca_remove(struct device *dev) scsi_remove_host(shpnt); release_region(shpnt->io_port, shpnt->n_io_port); free_irq(shpnt->irq, dev); + scsi_host_put(shpnt); return 0; }