linux/drivers/infiniband
Wenwen Wang 2323d7baab infiniband: hfi1: fix memory leaks
In fault_opcodes_write(), 'data' is allocated through kcalloc(). However,
it is not deallocated in the following execution if an error occurs,
leading to memory leaks. To fix this issue, introduce the 'free_data' label
to free 'data' before returning the error.

Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Acked-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Link: https://lore.kernel.org/r/1566154486-3713-1-git-send-email-wenwen@cs.uga.edu
Signed-off-by: Doug Ledford <dledford@redhat.com>
2019-08-20 13:44:45 -04:00
..
core RDMA/cma: fix null-ptr-deref Read in cma_cleanup 2019-08-20 13:44:45 -04:00
hw infiniband: hfi1: fix memory leaks 2019-08-20 13:44:45 -04:00
sw RDMA/siw: Fix potential NULL de-ref 2019-08-20 13:44:44 -04:00
ulp SCSI fixes on 20190720 2019-07-20 10:04:58 -07:00
Kconfig RDMA/nldev: Added configuration of RDMA dynamic interrupt moderation to netlink 2019-07-08 16:37:22 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00