Skip to content

Commit

Permalink
[SCSI] ibmmca: Stop leaking scsi_hosts on exit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matthew Wilcox authored and James Bottomley committed Oct 12, 2007
1 parent a57b1fc commit 34f8f0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/scsi/ibmmca.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 34f8f0d

Please sign in to comment.