summaryrefslogtreecommitdiff
path: root/drivers/infiniband/ulp/srp/ib_srp.h
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2021-05-23 21:12:10 -0700
committerJason Gunthorpe <jgg@nvidia.com>2021-05-28 20:21:21 -0300
commit7ec2e27a3afff64c96bfe7a77685c33619db84be (patch)
tree9da0388d662e5f57431968cdba57776dcf32ef2d /drivers/infiniband/ulp/srp/ib_srp.h
parent6dc26498e1d3d702b5321f380e24d3368765b351 (diff)
downloadlinux-7ec2e27a3afff64c96bfe7a77685c33619db84be.tar.gz
linux-7ec2e27a3afff64c96bfe7a77685c33619db84be.tar.bz2
linux-7ec2e27a3afff64c96bfe7a77685c33619db84be.zip
RDMA/srp: Fix a recently introduced memory leak
Only allocate a memory registration list if it will be used and if it will be freed. Link: https://lore.kernel.org/r/20210524041211.9480-5-bvanassche@acm.org Reviewed-by: Max Gurtovoy <maxg@mellanox.com> Fixes: f273ad4f8d90 ("RDMA/srp: Remove support for FMR memory registration") Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/ulp/srp/ib_srp.h')
0 files changed, 0 insertions, 0 deletions