Qiheng Lin cda9c0d556 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
2024-03-03 22:20:28 +11:00
..
2023-04-28 16:24:32 -07:00
2023-12-01 21:15:33 +11:00
2023-09-18 12:23:48 +10:00
2023-08-31 12:43:10 -07:00
2021-06-21 21:15:26 +10:00