Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78fbc824 authored by Michael Neuling's avatar Michael Neuling Committed by Paul Mackerras
Browse files

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: default avatarMichael Neuling <mikey@neuling.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent d26acd92
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -647,7 +647,7 @@ static int emulate_vsx(unsigned char __user *addr, unsigned int reg,
		       unsigned int flags, unsigned int length)
		       unsigned int flags, unsigned int length)
{
{
	char *ptr = (char *) &current->thread.TS_FPR(reg);
	char *ptr = (char *) &current->thread.TS_FPR(reg);
	int ret;
	int ret = 0;


	flush_vsx_to_thread(current);
	flush_vsx_to_thread(current);