scsi: dpt_i2o: use after free in adpt_release()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 19 Mar 2018 10:33:03 +0000 (13:33 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 21 Mar 2018 22:33:04 +0000 (18:33 -0400)
commit24268fd1ad3213079f1af09359b4243fffa95869
treed5c5816818626e0382e92753570523f99b41d0a0
parent83c9f08e6c6a6dc668384882de4dcf5ef4ae0ba7
scsi: dpt_i2o: use after free in adpt_release()

The scsi_host_put() function frees "pHba" and then we dereference it on
the next line when we do "scsi_host_put(pHba->host);".

[mkp: included fix from hch]

Fixes: 38e09e3bb056 ("scsi: dpt_i2o: stop using scsi_unregister")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/dpt_i2o.c