]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: dpt_i2o: double free if adpt_i2o_online_hba() fails
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 16 Dec 2016 09:35:39 +0000 (12:35 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 5 Jan 2017 05:21:12 +0000 (00:21 -0500)
commitee5d8b08336121071b4b8cba3fce608b9b3dcfe5
tree4b03d6a61cf90206bdc5863d42087c803f56aa8d
parent2656c9faa7aafd8d0da715a54433dfff4579b0fc
scsi: dpt_i2o: double free if adpt_i2o_online_hba() fails

There are two places where adpt_i2o_online_hba() is called.  Both
callers call adpt_i2o_delete_hba(pHba) if adpt_i2o_online_hba() fails
and since we also free it here that causes a double free bug.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/dpt_i2o.c