summaryrefslogtreecommitdiffstats
path: root/lib/iomap.c
diff options
context:
space:
mode:
authorQiushi Wu <wu000273@umn.edu>2020-05-27 22:02:30 -0500
committerJason Gunthorpe <jgg@mellanox.com>2020-05-29 15:35:49 -0300
commit0b8e125e213204508e1b3c4bdfe69713280b7abd (patch)
treedaee83a0303e5b40a14e66e2f14e21b63b75f08c /lib/iomap.c
parentbcafcdfdaee7665267e56990e8040fbab588550f (diff)
downloadlinux-0b8e125e213204508e1b3c4bdfe69713280b7abd.tar.bz2
RDMA/core: Fix several reference count leaks.
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 b8eb718348b8 ("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>
Diffstat (limited to 'lib/iomap.c')
0 files changed, 0 insertions, 0 deletions