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:
75b7b86
)
RDMA/mlx5: Initialize return variable in case pagefault was skipped
author
Leon Romanovsky
<
[email protected]
>
Thu, 29 Nov 2018 10:25:29 +0000
(12:25 +0200)
committer
Jason Gunthorpe
<
[email protected]
>
Thu, 29 Nov 2018 22:16:45 +0000
(15:16 -0700)
Pagefaults occurred in non-ODP MR are completely valid events, so
initialize return variable to 0.
Fixes: 4d5422a309de ("IB/mlx5: Skip non-ODP MR when handling a page fault")
Reported-by: Dan Carpenter <
[email protected]
>
Signed-off-by: Leon Romanovsky <
[email protected]
>
Signed-off-by: Jason Gunthorpe <
[email protected]
>
drivers/infiniband/hw/mlx5/odp.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/mlx5/odp.c
b/drivers/infiniband/hw/mlx5/odp.c
index b711a0f3aa3537939350648d7549bfca57ddb4e1..2cc3d69ab6f64dde00ee48c82ff93c5edca697f4 100644
(file)
--- a/
drivers/infiniband/hw/mlx5/odp.c
+++ b/
drivers/infiniband/hw/mlx5/odp.c
@@
-679,6
+679,7
@@
next_mr:
key);
if (bytes_mapped)
*bytes_mapped += bcnt;
+ ret = 0;
goto srcu_unlock;
}