RE: [PATCH 3/4] scsi: pm8001: fix a memory leak in flash_update

2014-07-10 Thread Suresh Thiagarajan
On Mon, Jul 7, 2014 at 8:50 PM, Tomas Henzl wrote: > ccb->fw_control_context is copied to local fw_control_context and > the local variable is never used later > > Free ccb->fw_control_context. > The task is forgotten thus also the reference to fw_control_context > and the completion thread take

[PATCH 3/4] scsi: pm8001: fix a memory leak in flash_update

2014-07-07 Thread Tomas Henzl
ccb->fw_control_context is copied to local fw_control_context and the local variable is never used later Free ccb->fw_control_context. The task is forgotten thus also the reference to fw_control_context and the completion thread takes the info from virt_ptr again. Signed-off-by: Tomas Henzl ---