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

Commit 020cfb05 authored by David S. Miller's avatar David S. Miller
Browse files

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



Second and third arguments were swapped for whatever reason.

Reported by Tom Callaway.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b69d3987
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -454,8 +454,8 @@ asmlinkage long sys_ipc(unsigned int call, int first, unsigned long second,
			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;
		}