From: Nicolas Palix Date: Tue, 24 Aug 2010 15:39:00 +0000 (+0200) Subject: Coccinelle: Add locks/mini_lock.cocci X-Git-Tag: v2.6.37-rc1~50^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54c056280e0dfcd39b33c4ed75116ce98697511c;p=pandora-kernel.git Coccinelle: Add locks/mini_lock.cocci Find missing unlocks. This semantic match considers the specific case where the unlock is missing from an if branch, and there is a lock before the if and an unlock after the if. False positives are due to cases where the if branch represents a case where the function is supposed to exit with the lock held, or where there is some preceding function call that releases the lock. Signed-off-by: Nicolas Palix Signed-off-by: Julia Lawall Signed-off-by: Michal Marek --- Reading git-diff-tree failed