From: Manfred Spraul Date: Fri, 6 Jun 2014 21:37:47 +0000 (-0700) Subject: ipc/sem.c: bugfix for semctl(,,GETZCNT) X-Git-Tag: omap-for-v3.16/fixes-against-rc1~91^2~4^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1994862dc9c16f360a9169a4d27200d15ba29713;p=pandora-kernel.git ipc/sem.c: bugfix for semctl(,,GETZCNT) GETZCNT is supposed to return the number of threads that wait until a semaphore value becomes 0. The current implementation overlooks complex operations that contain both wait-for-zero operation and operations that alter at least one semaphore. The patch fixes that. It's intentionally copy&paste, this will be cleaned up in the next patch. Signed-off-by: Manfred Spraul Cc: Davidlohr Bueso Cc: Michael Kerrisk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed