diff options
| author | Colin Ian King <colin.king@canonical.com> | 2017-08-23 15:34:33 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 10:27:28 +0200 |
| commit | 2ffabf50bd0038acc0e92fe78915610a7fded182 (patch) | |
| tree | 86532d9a9ba74f717655849c368ff3ade16ec589 /scripts/gdb/linux/proc.py | |
| parent | faff950c80dde6738deb213eb8810c14266e5a42 (diff) | |
staging: r8822be: fix memory leak of eeprom_map on error exit return
A memory leak of eeprom_map occurs if the call to halmac_eeprom_parser_88xx
fails. Fix this by kfree'ing it before returning.
Detected by CoverityScan, CID#1454569 ("Resource leak")
Fixes: 938a0447f094 ("staging: r8822be: Add code for halmac sub-driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions
