Files
linux/drivers/infiniband/hw/hfi1
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
..
2019-06-28 22:34:26 -03:00
2019-06-28 22:34:26 -03:00
2018-05-24 09:39:25 -06:00
2019-08-20 13:44:45 -04:00
2019-05-06 12:57:45 -03:00
2019-05-30 15:40:50 -03:00
2019-02-05 18:07:43 -05:00
2019-04-24 11:31:49 -03:00
2019-06-28 22:34:26 -03:00
2019-02-05 18:07:44 -05:00
2019-07-22 14:57:55 -03:00
2019-03-28 11:03:49 -03:00
2019-01-31 11:37:40 -05:00
2019-01-31 11:37:40 -05:00
2019-08-01 12:14:15 -04:00