scsi: cxgb4i: fix Tx skb leak
authorVarun Prakash <varun@chelsio.com>
Wed, 11 Oct 2017 14:03:07 +0000 (19:33 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 Oct 2017 18:25:28 +0000 (14:25 -0400)
commit9b3a081fb62158b50bcc90522ca2423017544367
treea3d91937d2dfe5778432caa3b97f38550d8e0150
parent4c2a02157fdd5dc71de7cf42eff07576746eb450
scsi: cxgb4i: fix Tx skb leak

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>
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c