[patch 11/37] SPARC64: Fix args to 64-bit sys_semctl() via sys_ipc().

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Greg KH
Date: Tuesday, May 13, 2008 - 1:11 pm

2.6.25-stable review patch.  If anyone has any objections, please let us
know.

------------------
From: David S. Miller <davem@davemloft.net>

[ Upstream commit: 020cfb05f2c594c778537159bd45ea5efb0c5e0d ]

Second and third arguments were swapped for whatever reason.

Reported by Tom Callaway.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
 arch/sparc64/kernel/sys_sparc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/arch/sparc64/kernel/sys_sparc.c
+++ b/arch/sparc64/kernel/sys_sparc.c
@@ -454,8 +454,8 @@ asmlinkage long sys_ipc(unsigned int cal
 			err = sys_semget(first, (int)second, (int)third);
 			goto out;
 		case SEMCTL: {
-			err = sys_semctl(first, third,
-					 (int)second | IPC_64,
+			err = sys_semctl(first, second,
+					 (int)third | IPC_64,
 					 (union semun) ptr);
 			goto out;
 		}

-- 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 00/37] 2.6.25.4 -stable review, Greg KH, (Tue May 13, 1:10 pm)
[patch 06/37] sparc: sunzilog uart order, Greg KH, (Tue May 13, 1:11 pm)
[patch 11/37] SPARC64: Fix args to 64-bit sys_semctl() via ..., Greg KH, (Tue May 13, 1:11 pm)
[patch 24/37] sparc: Fix ptrace() detach., Greg KH, (Tue May 13, 1:12 pm)
[patch 37/37] md: fix raid5 repair operations, Greg KH, (Tue May 13, 1:12 pm)
Re: [patch 20/37] {nfnetlink, ip, ip6}_queue: fix skb_over ..., Gustavo Guillermo Perez, (Wed May 14, 9:45 am)
Hardware designt to prevent Damages... [WAS: [patch 23/37] ..., Michelle Konzack, (Wed May 14, 12:52 pm)
Re: Hardware designt to prevent Damages... [WAS: [patch 23 ..., linux-os (Dick Johnson), (Thu May 15, 10:57 am)
Re: [patch 22/37] x86: sysfs cpu?/topology is empty in 2.6 ..., Vaidyanathan Srinivasan, (Thu May 15, 11:06 am)