mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 14:50:53 +07:00
[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>
This commit is contained in:
parent
a57b1fccdf
commit
34f8f0d294
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user