summaryrefslogtreecommitdiff
path: root/tools/debugging/Makefile
diff options
context:
space:
mode:
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>2026-03-14 01:17:40 +0000
committerMartin K. Petersen <martin.petersen@oracle.com>2026-03-19 22:07:39 -0400
commit01f784fc9d0ab2a6dac45ee443620e517cb2a19b (patch)
treef91b64bb8c975aaf9ad0687cbdb34c54c388269c /tools/debugging/Makefile
parentd71afa9deb4d413232ba16d693f7d43b321931b4 (diff)
scsi: target: file: Use kzalloc_flex for aio_cmd
The target_core_file doesn't initialize the aio_cmd->iocb for the ki_write_stream. When a write command fd_execute_rw_aio() is executed, we may get a bogus ki_write_stream value, causing unintended write failure status when checking iocb->ki_write_stream > max_write_streams in the block device. Let's just use kzalloc_flex when allocating the aio_cmd and let ki_write_stream=0 to fix this issue. Fixes: 732f25a2895a ("fs: add a write stream field to the kiocb") Fixes: c27683da6406 ("block: expose write streams for block device nodes") Cc: stable@vger.kernel.org Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Link: https://patch.msgid.link/f1a2f81c62f043e31f80bb92d5f29893400c8ee2.1773450782.git.Thinh.Nguyen@synopsys.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/debugging/Makefile')
0 files changed, 0 insertions, 0 deletions