android_kernel_sony_sdm845/drivers/infiniband
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Fan Guo 79eb4f02c2 RDMA/mad: Fix possible memory leak in ib_mad_post_receive_mads()
[ Upstream commit a17f4bed811c60712d8131883cdba11a105d0161 ]

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: 2c34e68f42 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-30 15:38:42 -04:00
..
core RDMA/mad: Fix possible memory leak in ib_mad_post_receive_mads() 2020-06-30 15:38:42 -04:00
hw IB/qib: Call kobject_put() when kobject_init_and_add() fails 2020-06-03 08:16:39 +02:00
sw net: ipv6_stub: use ip6_dst_lookup_flow instead of ip6_dst_lookup 2020-05-20 08:15:30 +02:00
ulp scsi: Revert "RDMA/isert: Fix a recently introduced regression related to logout" 2020-02-28 15:42:54 +01:00
Kconfig RDMA/ucm: Mark UCM interface as BROKEN 2018-07-17 11:37:54 +02:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00