projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0c6e88
)
IB/mlx5: Fix a warning message
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 14 Jun 2017 10:20:09 +0000
(13:20 +0300)
committer
Doug Ledford
<dledford@redhat.com>
Thu, 20 Jul 2017 15:20:49 +0000
(11:20 -0400)
"umem" is a valid pointer. We intended to print "*umem" or even just
"err" instead.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/mr.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/infiniband/hw/mlx5/mr.c
b/drivers/infiniband/hw/mlx5/mr.c
index 8ab2f1360a4564f6477420b6ab1b03811d360f19..2c40a2e989d26bfbe9449d0beb3763a49fa81cf7 100644
(file)
--- a/
drivers/infiniband/hw/mlx5/mr.c
+++ b/
drivers/infiniband/hw/mlx5/mr.c
@@
-835,7
+835,7
@@
static int mr_umem_get(struct ib_pd *pd, u64 start, u64 length,
access_flags, 0);
err = PTR_ERR_OR_ZERO(*umem);
if (err < 0) {
- mlx5_ib_err(dev, "umem get failed (%
ld)\n", PTR_ERR(umem)
);
+ mlx5_ib_err(dev, "umem get failed (%
d)\n", err
);
return err;
}