Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 1a4c4df2 authored by Pan Bian's avatar Pan Bian Committed by Greg Kroah-Hartman
Browse files

scsi: fnic: fix use after free

[ Upstream commit ec990306 ]

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: default avatarPan Bian <bianpan2016@163.com>
Reviewed-by: default avatarSatish Kharat <satishkh@cisco.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 42413763
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment