aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorGaosheng Cui <[email protected]>2022-11-17 11:51:00 +0800
committerMartin K. Petersen <[email protected]>2022-11-26 00:30:05 +0000
commite118df492320176af94deec000ae034cc92be754 (patch)
tree88eac71ee5ee948b25f0257fd2fc4b9f94bcc5f6 /scripts/gdb/linux/proc.py
parent95da5e58172cd3c58b82cb01e6cd157b6c5eabe9 (diff)
scsi: snic: Fix possible UAF in snic_tgt_create()
Smatch reports a warning as follows: drivers/scsi/snic/snic_disc.c:307 snic_tgt_create() warn: '&tgt->list' not removed from list If device_add() fails in snic_tgt_create(), tgt will be freed, but tgt->list will not be removed from snic->disc.tgt_list, then list traversal may cause UAF. Remove from snic->disc.tgt_list before free(). Fixes: c8806b6c9e82 ("snic: driver for Cisco SCSI HBA") Signed-off-by: Gaosheng Cui <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Narsimhulu Musini <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions