scsi: target: iscsi: cxgbit: fix csk leak
authorVarun Prakash <varun@chelsio.com>
Fri, 9 Nov 2018 15:29:01 +0000 (20:59 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jan 2019 09:03:49 +0000 (10:03 +0100)
commit8323aafe67b31c7f73d18747604ba1cc6c3e4f3a
tree33811325a2f81f1c186388cc49cd04dda3d647e0
parent0c8afaa83988de5fa6ec2b2003055f21cc25555b
scsi: target: iscsi: cxgbit: fix csk leak

[ Upstream commit 801df68d617e3cb831f531c99fa6003620e6b343 ]

csk leak can happen if a new TCP connection gets established after
cxgbit_accept_np() returns, to fix this leak free remaining csk in
cxgbit_free_np().

Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/target/iscsi/cxgbit/cxgbit_cm.c