scsi: cxgb4i: fix Tx skb leak
authorVarun Prakash <varun@chelsio.com>
Wed, 11 Oct 2017 14:03:07 +0000 (19:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Dec 2017 13:26:25 +0000 (14:26 +0100)
commit3aaaf02c110f36dc716780412add4799b2a89e5b
tree5c8a5db6076a8fd6b81e7cc17576ff491e5d7321
parentbfd66a406fe7e590055c1d6714adc697f18664c8
scsi: cxgb4i: fix Tx skb leak

[ Upstream commit 9b3a081fb62158b50bcc90522ca2423017544367 ]

In case of connection reset Tx skb queue can have some skbs which are
not transmitted so purge Tx skb queue in release_offload_resources() to
avoid skb leak.

Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c