diff options
author | Haggai Eran <haggaie@mellanox.com> | 2015-09-01 09:56:56 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-29 19:33:35 +0200 |
commit | ca3d0ab7bbd897ecb27911792127b3bd458d06b1 (patch) | |
tree | 1db5c0c59cb9ea771f9391b3f119886066db9880 /fs/jbd2/commit.c | |
parent | a9b08f949f15cbbb2e1123802fdaa816348d9ee3 (diff) |
IB/mlx5: avoid destroying a NULL mr in reg_user_mr error flow
commit 11d748045c6dadb279d1acdb6d2ea8f3f2ede85b upstream.
The mlx5_ib_reg_user_mr() function will attempt to call clean_mr() in
its error flow even though there is never a case where the error flow
occurs with a valid MR pointer to destroy.
Remove the clean_mr() call and the incorrect comment above it.
Fixes: b4cfe447d47b ("IB/mlx5: Implement on demand paging by adding
support for MMU notifiers")
Cc: Eli Cohen <eli@mellanox.com>
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions