aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx4/mr.c
diff options
context:
space:
mode:
authorSebastian Sanchez <sebastian.sanchez@intel.com>2018-05-01 05:36:13 -0700
committerDoug Ledford <dledford@redhat.com>2018-05-03 15:24:48 -0400
commit59482a14918b282ca2a98f38c69da5ebeb1107d2 (patch)
tree582883c82be7b63ceb3126eaab16a96cfd0848cd /drivers/infiniband/hw/mlx4/mr.c
parentIB/{hfi1, rdmavt}: Fix memory leak in hfi1_alloc_devdata() upon failure (diff)
downloadlinux-dev-59482a14918b282ca2a98f38c69da5ebeb1107d2.tar.xz
linux-dev-59482a14918b282ca2a98f38c69da5ebeb1107d2.zip
IB/hfi1: Fix memory leak in exception path in get_irq_affinity()
When IRQ affinity is set and the interrupt type is unknown, a cpu mask allocated within the function is never freed. Fix this memory leak by allocating memory within the scope where it is used. Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/mr.c')
0 files changed, 0 insertions, 0 deletions