diff options
author | Varun Prakash <varun@chelsio.com> | 2017-10-11 17:03:21 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-10-11 21:26:49 +0300 |
commit | 2269848386c4b8395bc67eaaf7d08011da7c07ef (patch) | |
tree | 5bfdb300156c62f189890dc004f2b19a62461a26 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 9b3a081fb62158b50bcc90522ca2423017544367 (diff) | |
download | linux-2269848386c4b8395bc67eaaf7d08011da7c07ef.tar.xz |
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/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions