Home
last modified time | relevance | path

Searched hist:"9 ec9b5ac" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/mips/kernel/
H A Dsignal.c9ec9b5ac Tue Nov 06 07:27:19 CST 2012 Ralf Baechle <ralf@linux-mips.org> MIPS: Fix harmlessly missing else statement.

The actual bug is a missing else statement - but really this should be
expressed using a switch() statement.

Found by Al Viro who writes "the funny thing is, it *does* work only
because r2 is syscall number and syscall number around 512 => return
value being ENOSYS and not one of ERESTART... so we really can't hit
the first if and emerge from it with ERESTART_RESTARTBLOCK. still
wrong to write it that way..."

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
9ec9b5ac Tue Nov 06 07:27:19 CST 2012 Ralf Baechle <ralf@linux-mips.org> MIPS: Fix harmlessly missing else statement.

The actual bug is a missing else statement - but really this should be
expressed using a switch() statement.

Found by Al Viro who writes "the funny thing is, it *does* work only
because r2 is syscall number and syscall number around 512 => return
value being ENOSYS and not one of ERESTART... so we really can't hit
the first if and emerge from it with ERESTART_RESTARTBLOCK. still
wrong to write it that way..."

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>