Skip to content
Commit ad19f704 authored by Guo Zhi's avatar Guo Zhi Committed by Greg Kroah-Hartman
Browse files

scsi: advansys: Fix kernel pointer leak

[ Upstream commit d4996c6e ]

Pointers should be printed with %p or %px rather than cast to 'unsigned
long' and printed with %lx.

Change %lx to %p to print the hashed pointer.

Link: https://lore.kernel.org/r/20210929122538.1158235-1-qtxuning1999@sjtu.edu.cn


Signed-off-by: default avatarGuo Zhi <qtxuning1999@sjtu.edu.cn>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b3f43659
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