Skip to content

Commit 78fbc82

Browse files
mikeypaulusmack
authored andcommitted
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>
1 parent d26acd9 commit 78fbc82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/powerpc/kernel/align.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ static int emulate_vsx(unsigned char __user *addr, unsigned int reg,
647647
unsigned int flags, unsigned int length)
648648
{
649649
char *ptr = (char *) &current->thread.TS_FPR(reg);
650-
int ret;
650+
int ret = 0;
651651

652652
flush_vsx_to_thread(current);
653653

0 commit comments

Comments
 (0)