diff options
| author | Seth Forshee <seth.forshee@canonical.com> | 2017-09-28 09:33:39 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-23 08:44:21 +0100 |
| commit | 1a8ccbf263d63e22bdee411c1ac8a70393c2fe82 (patch) | |
| tree | 21af52148a0deeb23fe2c94dfd96522e57cd9325 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 05de33f10001bc617e45110a4815273c245ac5b2 (diff) | |
powerpc: Always initialize input array when calling epapr_hypercall()
commit 186b8f1587c79c2fa04bfa392fdf084443e398c1 upstream.
Several callers to epapr_hypercall() pass an uninitialized stack
allocated array for the input arguments, presumably because they
have no input arguments. However this can produce errors like
this one
arch/powerpc/include/asm/epapr_hcalls.h:470:42: error: 'in' may be used uninitialized in this function [-Werror=maybe-uninitialized]
unsigned long register r3 asm("r3") = in[0];
~~^~~
Fix callers to this function to always zero-initialize the input
arguments array to prevent this.
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Cc: "A. Wilcox" <awilfox@adelielinux.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
