]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9b17672bcf6d09e261065d6a76302e6c0aa17d09
tree7f5ecfa1bb29c5fe4f539c9533e132a18c89e16d
parentbf15057beec09b82bfe87a72e2d0072ea817f56a
IB/mlx5: Fix memory leak in clean_mr error path

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

Fixes: 7c120481afcc ('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