OpenCloudOS-Kernel/drivers/scsi/cxgbi
Varun Prakash 2269848386 scsi: libcxgbi: simplify task->hdr allocation for mgmt cmds
In case of mgmt cmds, task->hdr is dereferenced after transmitting the
pdu in iscsi_tcp_task_xmit(). To handle this case current code
increments the Tx skb reference count and frees the skb in
cxgbi_cleanup_task(). In some error cases this results in skb leak.

To fix this in case of mgmt cmds, allocate a separate buffer for iSCSI
hdr and free this buffer in cxgbi_cleanup_task().

Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-10-11 14:26:49 -04:00
..
cxgb3i networking: make skb_push & __skb_push return void pointers 2017-06-16 11:48:40 -04:00
cxgb4i scsi: cxgb4i: fix Tx skb leak 2017-10-11 14:25:28 -04:00
Kconfig [SCSI] cxgb3i: change cxgb3i to use libcxgbi 2010-09-05 14:29:23 -03:00
Makefile cxgb4i,libcxgbi: add iSCSI DDP support 2016-07-25 10:31:08 -07:00
libcxgbi.c scsi: libcxgbi: simplify task->hdr allocation for mgmt cmds 2017-10-11 14:26:49 -04:00
libcxgbi.h scsi: libcxgbi: simplify task->hdr allocation for mgmt cmds 2017-10-11 14:26:49 -04:00