summaryrefslogtreecommitdiff
path: root/include/linux/irq_cpustat.h
diff options
context:
space:
mode:
authorFan Guo <guofan5@huawei.com>2020-06-12 14:38:24 +0800
committerJason Gunthorpe <jgg@mellanox.com>2020-06-19 09:23:30 -0300
commita17f4bed811c60712d8131883cdba11a105d0161 (patch)
tree230426217dfa3e6f949c573726742bfb57f0e3eb /include/linux/irq_cpustat.h
parent9e0dc7b9e1cbc9cd0dc4ab2377c0536d4b18bedc (diff)
RDMA/mad: Fix possible memory leak in ib_mad_post_receive_mads()
If ib_dma_mapping_error() returns non-zero value, ib_mad_post_receive_mads() will jump out of loops and return -ENOMEM without freeing mad_priv. Fix this memory-leak problem by freeing mad_priv in this case. Fixes: 2c34e68f4261 ("IB/mad: Check and handle potential DMA mapping errors") Link: https://lore.kernel.org/r/20200612063824.180611-1-guofan5@huawei.com Signed-off-by: Fan Guo <guofan5@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/linux/irq_cpustat.h')
0 files changed, 0 insertions, 0 deletions