diff options
author | Liguang Zhang <[email protected]> | 2019-07-15 14:58:44 +0800 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2019-08-20 23:52:11 +0200 |
commit | 6abc7622271dc520f241462e2474c71723638851 (patch) | |
tree | 36144d862b841cab7e098035209a9233abb728e8 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | bb100b64763c5f93a4d5e97d3a1abedadfaaf384 (diff) |
ACPI / APEI: Release resources if gen_pool_add() fails
Destroy ghes_estatus_pool and release memory allocated via vmalloc() on
errors in ghes_estatus_pool_init() in order to avoid memory leaks.
[ bp: do the labels properly and with descriptive names and massage. ]
Signed-off-by: Liguang Zhang <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions