summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDongdong Hao <doubled@leap-io-kernel.com>2026-11-04 17:28:08 +0800
committerMartin K. Petersen (Oracle) <mkp@kernel.org>2026-11-04 22:58:44 -0500
commit04feb5fd2c23894ebc2cdaf4a4cc38b8667b17ac (patch)
tree9c5ff12c14f841f312843b2aa10494778c1f6cdf /tools/perf/scripts/python
parentc84374cf4d2cb0c6efff91f7a37e85656cbbd593 (diff)
scsi: leapraid: Fix init_cmd_priv error handling
leapraid_init_cmd_priv() ignores the return value of leapraid_internal_init_cmd_priv() and always returns success. If dma_pool_alloc() fails, io_tracker->chain remains NULL, but the SCSI midlayer considers the command successfully initialized. A subsequent I/O requiring more than LEAPRAID_SGL_INLINE_THRESHOLD DMA-mapped scatter-gather entries dereferences the NULL chain buffer while building the chained SGL, causing a kernel crash. Return the result of leapraid_internal_init_cmd_priv() so that allocation failures propagate to the SCSI midlayer and abort initialization of the affected request. Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Signed-off-by: Dongdong Hao <doubled@leap-io-kernel.com> Link: https://patch.msgid.link/20261104092808.206067-1-doubled@leap-io-kernel.com Fixes: 5597088c9e79 ("scsi: leapraid: Add new SCSI driver") Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions