RDMA/device: Ensure that security memory is always freed
authorJason Gunthorpe <jgg@mellanox.com>
Thu, 7 Feb 2019 05:41:48 +0000 (22:41 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 8 Feb 2019 23:56:45 +0000 (16:56 -0700)
commitb34b269ad85d7dd4a512487f2395c3be3e40f76a
tree4bb128453a260e22572f4c305afaad803bf78f97
parente3593b568a68b0e1a434b80fd6eaebfb655e839d
RDMA/device: Ensure that security memory is always freed

Since this only frees memory it should be done during the release
callback. Otherwise there are possible error flows where it might not get
called if registration aborts.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/core_priv.h
drivers/infiniband/core/device.c
drivers/infiniband/core/security.c