]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/core: Fix unwinding flow in case of error to register device
authorParav Pandit <parav@mellanox.com>
Wed, 17 Oct 2018 10:19:27 +0000 (13:19 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 17 Oct 2018 15:43:07 +0000 (11:43 -0400)
commit67fecaf8e9cc28812042f61194ac0e0a9737f897
tree9f4e9830c345376f95e4d5aa0514ad9f4f5549ae
parent56e027a604c80b1106786f8426e7cc5dbacb53b2
RDMA/core: Fix unwinding flow in case of error to register device

If port pkey list initialization fails, free the port_immutable memory
during cleanup path. Currently it is missed out.

If cache setup fails, free the pkey list during cleanup path.

Fixes: d291f1a65 ("IB/core: Enforce PKey security on QPs")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/device.c