diff options
author | Russ Weight <[email protected]> | 2022-08-30 17:25:18 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-09-01 17:47:27 +0200 |
commit | 789bba82f63c3e81dce426ba457fc7905b30ac6e (patch) | |
tree | ac7efbdb2aa65d3e69044fb646951ed63829f974 /tools/testing/selftests/bpf/prog_tests | |
parent | 8b40c38e37492b5bdf8e95b46b5cca9517a9957a (diff) |
firmware_loader: Fix memory leak in firmware upload
In the case of firmware-upload, an instance of struct fw_upload is
allocated in firmware_upload_register(). This data needs to be freed
in fw_dev_release(). Create a new fw_upload_free() function in
sysfs_upload.c to handle the firmware-upload specific memory frees
and incorporate the missing kfree call for the fw_upload structure.
Fixes: 97730bbb242c ("firmware_loader: Add firmware-upload support")
Cc: stable <[email protected]>
Signed-off-by: Russ Weight <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests')
0 files changed, 0 insertions, 0 deletions