diff options
| author | Varun Prakash <varun@chelsio.com> | 2017-10-11 19:33:21 +0530 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-10-11 14:26:49 -0400 |
| commit | 2269848386c4b8395bc67eaaf7d08011da7c07ef (patch) | |
| tree | 5bfdb300156c62f189890dc004f2b19a62461a26 /tools/perf/scripts/python/bin | |
| parent | scsi: cxgb4i: fix Tx skb leak (diff) | |
| download | linux-2269848386c4b8395bc67eaaf7d08011da7c07ef.tar.gz linux-2269848386c4b8395bc67eaaf7d08011da7c07ef.zip | |
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>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
