]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sparc: semtimedop() unreachable due to comparison error
authorRob Gardner <rob.gardner@oracle.com>
Tue, 3 Mar 2015 06:16:55 +0000 (23:16 -0700)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 24 Mar 2015 12:22:09 +0000 (08:22 -0400)
commit4fb82ed6c0e10d4386a70cca22fbe8bf56eadb9e
treeb20c582a097d484377d6df875084ebb686722a72
parentb8b07bdf44650f331967b63875311a95d4b4d87d
sparc: semtimedop() unreachable due to comparison error

[ Upstream commit 53eb2516972b8c4628651dfcb926cb9ef8b2864a ]

A bug was reported that the semtimedop() system call was always
failing eith ENOSYS.

Since SEMCTL is defined as 3, and SEMTIMEDOP is defined as 4,
the comparison "call <= SEMCTL" will always prevent SEMTIMEDOP
from getting through to the semaphore ops switch statement.

This is corrected by changing the comparison to "call <= SEMTIMEDOP".

Orabug: 20633375

Signed-off-by: Rob Gardner <rob.gardner@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/sparc/kernel/sys_sparc_64.c