OSDN Git Service

RDMA/mlx5: Properly check return value of mlx5_get_uars_page
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 23 Apr 2018 14:01:56 +0000 (17:01 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 27 Apr 2018 15:03:15 +0000 (11:03 -0400)
commit444261ca6ff201fa03de97a5041237e67a9d8d31
tree6effb16897e4d1e102111fcd0c730706f65ca060
parent84a6a7a99c0ac2f67366288c0625c9fba176b264
RDMA/mlx5: Properly check return value of mlx5_get_uars_page

Starting from commit 72f36be06138 ("net/mlx5: Fix mlx5_get_uars_page to
return error code") the mlx5_get_uars_page() call returns error in case
of failure, but it was mistakenly overlooked in the merge commit.

Fixes: e7996a9a77fc ("Merge tag v4.15 of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git")
Reported-by: Alaa Hleihel <alaa@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c