IB/mlx5: Fix memory leak in clean_mr error path
authorKamal Heib <kamalh@mellanox.com>
Thu, 17 Aug 2017 12:52:31 +0000 (15:52 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 24 Aug 2017 21:47:34 +0000 (17:47 -0400)
commit5942d8ae411775b76e5e1ab0cce57b0666516f2d
tree7f5ecfa1bb29c5fe4f539c9533e132a18c89e16d
parentff740aefecb98da4605df1cada7904c44eaee161
IB/mlx5: Fix memory leak in clean_mr error path

In clean_mr error path the 'mr' should be freed.

Fixes: e126ba97dba9 ('mlx5: Add driver for Mellanox Connect-IB adapters')
Signed-off-by: Kamal Heib <kamalh@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/mr.c