From: David S. Miller Date: Wed, 10 Oct 2007 03:56:31 +0000 (-0700) Subject: [SPARC64]: Fix bugs in SYSV IPC handling in 64-bit processes. X-Git-Tag: v2.6.24-rc1~1325^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7379b42b607782695f49d05c80d3eb99e5072908;p=pandora-kernel.git [SPARC64]: Fix bugs in SYSV IPC handling in 64-bit processes. Thanks to Tom Callaway for the excellent bug report and test case. sys_ipc() has several problems, most to due with semaphore call handling: 1) 'err' return should be a 'long' 2) "union semun" is passed in a register on 64-bit compared to 32-bit which provides it on the stack and therefore by reference 3) Second and third arguments to SEMCTL are swapped compared to 32-bit. Signed-off-by: David S. Miller --- Reading git-diff-tree failed