diff options
| author | Arun Easi <[email protected]> | 2021-03-29 01:52:23 -0700 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2021-03-29 22:38:58 -0400 |
| commit | 6641df81ab799f28a5d564f860233dd26cca0d93 (patch) | |
| tree | a5c86683b785c1a53fa3163203cd1ab38f7ad1ee /tools/perf/scripts/python/flamegraph.py | |
| parent | 2ce35c0821afc2acd5ee1c3f60d149f8b2520ce8 (diff) | |
scsi: qla2xxx: Fix crash in qla2xxx_mqueuecommand()
RIP: 0010:kmem_cache_free+0xfa/0x1b0
Call Trace:
qla2xxx_mqueuecommand+0x2b5/0x2c0 [qla2xxx]
scsi_queue_rq+0x5e2/0xa40
__blk_mq_try_issue_directly+0x128/0x1d0
blk_mq_request_issue_directly+0x4e/0xb0
Fix incorrect call to free srb in qla2xxx_mqueuecommand(), as srb is now
allocated by upper layers. This fixes smatch warning of srb unintended
free.
Link: https://lore.kernel.org/r/[email protected]
Fixes: af2a0c51b120 ("scsi: qla2xxx: Fix SRB leak on switch command timeout")
Cc: [email protected] # 5.5
Reported-by: Laurence Oberman <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Reviewed-by: Himanshu Madhani <[email protected]>
Signed-off-by: Arun Easi <[email protected]>
Signed-off-by: Nilesh Javali <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions