scsi: qedf: missing kref_put in qedf_xmit()
authorHannes Reinecke <hare@suse.com>
Tue, 26 Mar 2019 07:38:43 +0000 (00:38 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 28 Mar 2019 01:54:52 +0000 (21:54 -0400)
commit4262d35c32c652344b6784cad51ec5a0e2e5258b
treed297db0039003b4dfcbb73743bb5784c67ee80a0
parent76dbf4ff068c730bf6927193a481b692e87f9f3e
scsi: qedf: missing kref_put in qedf_xmit()

qedf_xmit() calls fc_rport_lookup(), but discards the returned rdata
structure almost immediately without decreasing the refcount.  This leads
to a refcount leak and the rdata never to be freed.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_main.c