]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hfi1: Fix kernel pointer leak
authorGuo Zhi <qtxuning1999@sjtu.edu.cn>
Wed, 22 Sep 2021 13:48:57 +0000 (21:48 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 27 Sep 2021 17:32:14 +0000 (14:32 -0300)
commit7d3a3490ea83638c76d9961aec6bae204011358e
treef7edc859c84723164772fc7b65cb7a760a0401f5
parentcfee20bef51ac69ac86277d7a4a42caf94360fb2
RDMA/hfi1: Fix kernel pointer leak

Pointers should be printed with %p or %px rather than cast to 'unsigned
long long' and printed with %llx.  Change %llx to %p to print the secured
pointer.

Fixes: 3ab60a9ea9a6 ("IB/{ipoib,hfi1}: Add a timeout handler for rdma_netdev")
Link: https://lore.kernel.org/r/20210922134857.619602-1-qtxuning1999@sjtu.edu.cn
Signed-off-by: Guo Zhi <qtxuning1999@sjtu.edu.cn>
Acked-by: Mike Marciniszyn <mike.marciniszyn@cornelisnetworks.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hfi1/ipoib_tx.c