[PATCH] powerpc/pseries: Fix potential memleak in papr_get_attr()

2022-12-08 Thread Qiheng Lin
`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 --- arch/powerpc/platfor

[PATCH -next] powerpc: Remove duplicated include from time.c

2021-03-31 Thread Qiheng Lin
Remove duplicated include. Reported-by: Hulk Robot Signed-off-by: Qiheng Lin --- arch/powerpc/kernel/time.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index b67d93a609a2..2c8762002b21 100644 --- a/arch/powerpc/kernel/time.c +++ b