summaryrefslogtreecommitdiff
path: root/lib/mpi
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2019-02-06 22:41:49 -0700
committerJason Gunthorpe <jgg@mellanox.com>2019-02-08 16:56:45 -0700
commitd45f89d59bcd42d6b8575d0af69d7a3a98e73bb6 (patch)
tree7e2eab55760501c53c2ac750bb65e74cdd0a6026 /lib/mpi
parentb34b269ad85d7dd4a512487f2395c3be3e40f76a (diff)
RDMA/device: Call ib_cache_release_one() only from ib_device_release()
Instead of complicated logic about when this memory is freed, always free it during device release(). All the cache pointers start out as NULL, so it is safe to call this before the cache is initialized. This makes for a simpler error unwind flow, and a simpler understanding of the lifetime of the memory allocations inside the struct ib_device. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions