summaryrefslogtreecommitdiff
path: root/rust/proc-macro2/rcvec.rs
diff options
context:
space:
mode:
authorAndrey Vatoropin <a.vatoropin@crpt.ru>2025-11-18 08:42:31 +0000
committerMartin K. Petersen <martin.petersen@oracle.com>2025-11-29 15:06:12 -0500
commit5053eab38a4c4543522d0c320c639c56a8b59908 (patch)
treeb2f272bde78598c1deb61de31375a310ec4b138a /rust/proc-macro2/rcvec.rs
parentb4bb6daf4ac4d4560044ecdd81e93aa2f6acbb06 (diff)
scsi: target: Reset t_task_cdb pointer in error case
If allocation of cmd->t_task_cdb fails, it remains NULL but is later dereferenced in the 'err' path. In case of error, reset NULL t_task_cdb value to point at the default fixed-size buffer. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 9e95fb805dc0 ("scsi: target: Fix NULL pointer dereference") Cc: stable@vger.kernel.org Signed-off-by: Andrey Vatoropin <a.vatoropin@crpt.ru> Reviewed-by: Mike Christie <michael.christie@oracle.com> Link: https://patch.msgid.link/20251118084014.324940-1-a.vatoropin@crpt.ru Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'rust/proc-macro2/rcvec.rs')
0 files changed, 0 insertions, 0 deletions