projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0222d1
)
RDMA/hns: Use %pK format pointer print
author
Lang Cheng
<chenglang@huawei.com>
Mon, 24 Jun 2019 11:47:50 +0000
(19:47 +0800)
committer
Jason Gunthorpe
<jgg@mellanox.com>
Sun, 7 Jul 2019 12:19:38 +0000
(09:19 -0300)
The format specifier \"%p\" can leak kernel addresses. Use \"%pK\"
instead.
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c
b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c
index 2189e528d32df67fbe9b2dae0c39a5b9d4506a2f..1a2c7dad2a0dd6c626c88ee1e2b1fdb91cebf885 100644
(file)
--- a/
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
+++ b/
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
@@
-3903,7
+3903,8
@@
static int hns_roce_v1_aeq_int(struct hns_roce_dev *hr_dev,
*/
dma_rmb();
- dev_dbg(dev, "aeqe = %p, aeqe->asyn.event_type = 0x%lx\n", aeqe,
+ dev_dbg(dev, "aeqe = %pK, aeqe->asyn.event_type = 0x%lx\n",
+ aeqe,
roce_get_field(aeqe->asyn,
HNS_ROCE_AEQE_U32_4_EVENT_TYPE_M,
HNS_ROCE_AEQE_U32_4_EVENT_TYPE_S));