1
0
Fork 0
alistair23-linux/drivers/infiniband
Qiushi Wu c0c8c8b105 RDMA/core: Fix several reference count leaks.
[ Upstream commit 0b8e125e21 ]

kobject_init_and_add() takes reference even when it fails.  If this
function returns an error, kobject_put() must be called to properly clean
up the memory associated with the object. Previous
commit b8eb718348 ("net-sysfs: Fix reference count leak in
rx|netdev_queue_add_kobject") fixed a similar problem.

Link: https://lore.kernel.org/r/20200528030231.9082-1-wu000273@umn.edu
Signed-off-by: Qiushi Wu <wu000273@umn.edu>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-24 17:50:17 +02:00
..
core RDMA/core: Fix several reference count leaks. 2020-06-24 17:50:17 +02:00
hw IB/mlx5: Fix DEVX support for MLX5_CMD_OP_INIT2INIT_QP command 2020-06-24 17:50:17 +02:00
sw RDMA/rxe: Always return ERR_PTR from rxe_create_mmap_info() 2020-05-20 08:20:25 +02:00
ulp IB/ipoib: Fix double free of skb in case of multicast traffic in CM mode 2020-06-03 08:21:26 +02:00
Kconfig RDMA/odp: Use the common interval tree library instead of generic 2019-08-21 13:34:09 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00