RDMA/mlx5: Initialize return variable in case pagefault was skipped
Pagefaults occurred in non-ODP MR are completely valid events, so
initialize return variable to 0.
Fixes: 4d5422a309
("IB/mlx5: Skip non-ODP MR when handling a page fault")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
parent
75b7b86bdb
commit
7bca603a69
|
@ -679,6 +679,7 @@ next_mr:
|
||||||
key);
|
key);
|
||||||
if (bytes_mapped)
|
if (bytes_mapped)
|
||||||
*bytes_mapped += bcnt;
|
*bytes_mapped += bcnt;
|
||||||
|
ret = 0;
|
||||||
goto srcu_unlock;
|
goto srcu_unlock;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue