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/powerpc/kernel/align.c | |
parent | d26acd92fa990764b72608a68224f46fac377032 (diff) | |
download | linux-78fbc824ed8225edd80cdc57771d5ca4f7aae95e.tar.gz linux-78fbc824ed8225edd80cdc57771d5ca4f7aae95e.tar.bz2 linux-78fbc824ed8225edd80cdc57771d5ca4f7aae95e.zip |
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/powerpc/kernel/align.c')
-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 367129789cc0..5af4e9b2dbe2 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); |