summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sg.c
diff options
context:
space:
mode:
authorPan Bian <bianpan2016@163.com>2019-11-04 16:26:22 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2019-11-06 06:04:02 +0100
commitec990306f77fd4c58c3b27cc3b3c53032d6e6670 (patch)
tree6c5eb74ef2ba35ae0b7ac61b4f267b1b80396e23 /drivers/scsi/sg.c
parentscsi: core: scsi_trace: Use get_unaligned_be*() (diff)
downloadlinux-ec990306f77fd4c58c3b27cc3b3c53032d6e6670.tar.xz
linux-ec990306f77fd4c58c3b27cc3b3c53032d6e6670.zip
scsi: fnic: fix use after free
The memory chunk io_req is released by mempool_free. Accessing io_req->start_time will result in a use after free bug. The variable start_time is a backup of the timestamp. So, use start_time here to avoid use after free. Link: https://lore.kernel.org/r/1572881182-37664-1-git-send-email-bianpan2016@163.com Signed-off-by: Pan Bian <bianpan2016@163.com> Reviewed-by: Satish Kharat <satishkh@cisco.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/sg.c')
0 files changed, 0 insertions, 0 deletions