diff options
author | 2022-12-08 21:34:49 +0800 | |
---|---|---|
committer | 2024-03-03 22:20:28 +1100 | |
commit | cda9c0d556283e2d4adaa9960b2dc19b16156bae (patch) | |
tree | 80b16af37b595ddeb1df54b5c12349b6e518f8d9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | powerpc/32: Curb objtool unannotated intra-function call warning (diff) | |
download | wireguard-linux-cda9c0d556283e2d4adaa9960b2dc19b16156bae.tar.xz wireguard-linux-cda9c0d556283e2d4adaa9960b2dc19b16156bae.zip |
powerpc/pseries: Fix potential memleak in papr_get_attr()
`buf` is allocated in papr_get_attr(), and krealloc() of `buf`
could fail. We need to free the original `buf` in the case of failure.
Fixes: 3c14b73454cf ("powerpc/pseries: Interface to represent PAPR firmware attributes")
Signed-off-by: Qiheng Lin <linqiheng@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20221208133449.16284-1-linqiheng@huawei.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions