]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Initialize return variable in case pagefault was skipped
authorLeon Romanovsky <leonro@mellanox.com>
Thu, 29 Nov 2018 10:25:29 +0000 (12:25 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 29 Nov 2018 22:16:45 +0000 (15:16 -0700)
commit5e4f319bd50f055d7292bffdfe3a657f8af97391
treea7b5b89bf49442ccb6cd1316f4bb910dfd462bc8
parentd9b856b66856b375b30d7db1732e527820e1b4ac
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: 4bffeaaa6e6b ("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>
drivers/infiniband/hw/mlx5/odp.c