Messages in this thread | | | Subject | Re: [PATCH] infiniband: hfi1: fix memory leaks | From | Doug Ledford <> | Date | Tue, 20 Aug 2019 13:26:44 -0400 |
| |
On Sun, 2019-08-18 at 13:54 -0500, Wenwen Wang wrote: > 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>
Applied to for-rc, thanks.
-- Doug Ledford <dledford@redhat.com> GPG KeyID: B826A3330E572FDD Fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD [unhandled content-type:application/pgp-signature] | |