]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: avoid destroying a NULL mr in reg_user_mr error flow
authorHaggai Eran <haggaie@mellanox.com>
Tue, 1 Sep 2015 06:56:56 +0000 (09:56 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 3 Sep 2015 18:42:54 +0000 (14:42 -0400)
commitc0cc4ed5c78882dbe6f49185c677882789eac371
tree0c9fedcfe6b092e1e277b4651330ff9deb3221e0
parent1ff48fc42fb582de3228c3fdc656715b58f63713
IB/mlx5: avoid destroying a NULL mr in reg_user_mr error flow

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: db5f41f2c347 ("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>
drivers/infiniband/hw/mlx5/mr.c