diff options
author | Wenpeng Liang <[email protected]> | 2020-01-06 20:21:10 +0800 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2020-01-07 16:26:32 -0400 |
commit | eca44507c3e908b7362696a4d6a11d90371334c6 (patch) | |
tree | b71f455f89a40d9684f50f19439e0b51a01d1724 | |
parent | 622db5b6439ab4d28a44d2d49d58050e59cac781 (diff) |
RDMA/hns: Avoid printing address of mtt page
Address of a page shouldn't be printed in case of security issues.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Wenpeng Liang <[email protected]>
Signed-off-by: Weihang Li <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_mr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_mr.c b/drivers/infiniband/hw/hns/hns_roce_mr.c index 9ad19170c3f9..95765560c1cf 100644 --- a/drivers/infiniband/hw/hns/hns_roce_mr.c +++ b/drivers/infiniband/hw/hns/hns_roce_mr.c @@ -1064,8 +1064,8 @@ int hns_roce_ib_umem_write_mtt(struct hns_roce_dev *hr_dev, if (!(npage % (1 << (mtt->page_shift - PAGE_SHIFT)))) { if (page_addr & ((1 << mtt->page_shift) - 1)) { dev_err(dev, - "page_addr 0x%llx is not page_shift %d alignment!\n", - page_addr, mtt->page_shift); + "page_addr is not page_shift %d alignment!\n", + mtt->page_shift); ret = -EINVAL; goto out; } |