Re: [patch] scsi: dpt_i2o: double free if adpt_i2o_online_hba() fails

2016-12-20 Thread Martin K. Petersen
> "Dan" == Dan Carpenter writes: Dan> There are two places where adpt_i2o_online_hba() is called. Both Dan> callers call adpt_i2o_delete_hba(pHba) if adpt_i2o_online_hba() Dan> fails and since we also free it here that causes a double free bug. Applied to

[patch] scsi: dpt_i2o: double free if adpt_i2o_online_hba() fails

2016-12-16 Thread Dan Carpenter
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 --- This bug pre-dates git. diff --git