linux-stable/drivers/infiniband/hw/usnic
Dinghao Liu 102f2a4047 RDMA/usnic: Fix memleak in find_free_vf_and_create_qp_grp
commit a306aba9c8 upstream.

If usnic_ib_qp_grp_create() fails at the first call, dev_list
will not be freed on error, which leads to memleak.

Fixes: e3cf00d0a8 ("IB/usnic: Add Cisco VIC low-level hardware driver")
Link: https://lore.kernel.org/r/20201226074248.2893-1-dinghao.liu@zju.edu.cn
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-23 15:48:44 +01:00
..
Kconfig
Makefile
usnic.h
usnic_abi.h
usnic_common_pkt_hdr.h
usnic_common_util.h
usnic_debugfs.c
usnic_debugfs.h
usnic_fwd.c
usnic_fwd.h
usnic_ib.h
usnic_ib_main.c
usnic_ib_qp_grp.c
usnic_ib_qp_grp.h
usnic_ib_sysfs.c
usnic_ib_sysfs.h
usnic_ib_verbs.c RDMA/usnic: Fix memleak in find_free_vf_and_create_qp_grp 2021-01-23 15:48:44 +01:00
usnic_ib_verbs.h
usnic_log.h
usnic_transport.c
usnic_transport.h
usnic_uiom.c
usnic_uiom.h
usnic_uiom_interval_tree.c
usnic_uiom_interval_tree.h
usnic_vnic.c
usnic_vnic.h