diff options
author | Michael Neuling <mikey@neuling.org> | 2008-08-28 14:57:39 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-09-03 20:53:14 +1000 |
commit | 78fbc824ed8225edd80cdc57771d5ca4f7aae95e (patch) | |
tree | 8184d59dc1ce0aec27fa5dd6404cd451dba0136c /arch | |
parent | d26acd92fa990764b72608a68224f46fac377032 (diff) |
powerpc: Fix uninitialised variable in VSX alignment code
This fixes an uninitialised variable in the VSX alignment code. It can
cause warnings from GCC (noticed with gcc-4.1.1). Gcc is actually
correct in this instance, and this bug could cause the alignment
interrupt handler to send a SIGSEGV to the process on a legitimate
access.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/align.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/align.c b/arch/powerpc/kernel/align.c index 367129789cc..5af4e9b2dbe 100644 --- a/arch/powerpc/kernel/align.c +++ b/arch/powerpc/kernel/align.c @@ -647,7 +647,7 @@ static int emulate_vsx(unsigned char __user *addr, unsigned int reg, unsigned int flags, unsigned int length) { char *ptr = (char *) ¤t->thread.TS_FPR(reg); - int ret; + int ret = 0; flush_vsx_to_thread(current); |