]> 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)
commitd187626b8bbaf8b5e29e7af686c8e403716db307
treef7edc859c84723164772fc7b65cb7a760a0401f5
parent2a96e355336f36724ec146e3ef5e2859d19b186c
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: acd86d392132 ("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