From: Linus Torvalds Date: Sat, 4 May 2013 17:25:11 +0000 (-0700) Subject: ipc: fix double sem unlock in semctl error path X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~38^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbfd1d2862a8316c7191bc551c6a842e6918abb0;p=pandora-kernel.git ipc: fix double sem unlock in semctl error path Fix another ipc locking buglet introduced by the scalability patches: when semctl_down() was changed to delay the semaphore locking, one error path for security_sem_semctl() went through the semaphore unlock logic even though the semaphore had never been locked. Introduced by commit 16df3674efe3 ("ipc,sem: do not hold ipc lock more than necessary") Acked-by: Davidlohr Bueso Cc: Rik van Riel Cc: Al Viro Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed