diff options
author | Liguang Zhang <zhangliguang@linux.alibaba.com> | 2019-07-15 14:58:44 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-08-20 23:52:11 +0200 |
commit | 6abc7622271dc520f241462e2474c71723638851 (patch) | |
tree | 36144d862b841cab7e098035209a9233abb728e8 /tools | |
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 <zhangliguang@linux.alibaba.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/1563173924-47479-1-git-send-email-zhangliguang@linux.alibaba.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions