pm8001: fix a memory leak in nvmd_resp
authorTomas Henzl <thenzl@redhat.com>
Mon, 7 Jul 2014 15:19:58 +0000 (17:19 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 21:17:05 +0000 (17:17 -0400)
commitf3a0655f9ba293ff64bf0f74f79595f922db8f9e
treea240763c24be822da91e3f69760089674d1f36a8
parent31d05e5b14f362c7ea99d1d9e977771ef434b820
pm8001: fix a memory leak in nvmd_resp

Instead of copying information to fw_control_context free it.

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 <thenzl@redhat.com>
Acked-by: Suresh Thiagarajan <Suresh.Thiagarajan@pmcs.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/pm8001/pm8001_hwi.c