diff options
author | Parav Pandit <parav@mellanox.com> | 2018-10-17 13:19:27 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-10-17 11:43:07 -0400 |
commit | 67fecaf8e9cc28812042f61194ac0e0a9737f897 (patch) | |
tree | 9f4e9830c345376f95e4d5aa0514ad9f4f5549ae /drivers/infiniband/core/uverbs.h | |
parent | 56e027a604c80b1106786f8426e7cc5dbacb53b2 (diff) |
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>
Diffstat (limited to 'drivers/infiniband/core/uverbs.h')
0 files changed, 0 insertions, 0 deletions