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:00:58 +0000 (10:00 +0100)
commitb831528038e3cad0d745c53bcaeedb642f5cbc1f
tree9a70a3acd5433c1525a31ff8912d472e2072d96f
parent70875bda5af2066dba4bc227f927be4abb603531
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