diff options
author | Colin Ian King <[email protected]> | 2017-10-17 16:54:52 +0100 |
---|---|---|
committer | Corey Minyard <[email protected]> | 2017-10-17 15:50:12 -0500 |
commit | c0a32fe13cd323ca9420500b16fd69589c9ba91e (patch) | |
tree | b1162cfc4c7d8954ab09ee0ee3ef8da131aa25f9 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |
parent | b79bba15b3f2cf3d7828d45de2d2f2d08fcbb523 (diff) |
ipmi_si: fix memory leak on new_smi
The error exit path omits kfree'ing the allocated new_smi, causing a memory
leak. Fix this by kfree'ing new_smi.
Detected by CoverityScan, CID#14582571 ("Resource Leak")
Fixes: 7e030d6dff71 ("ipmi: Prefer ACPI system interfaces over SMBIOS ones")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Corey Minyard <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions