From: Rasesh Mody Date: Fri, 16 Sep 2011 15:06:46 +0000 (+0000) Subject: bna: Semaphore Lock Fix X-Git-Tag: v3.2-rc1~129^2~258 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d51a1325e43e0c05df626735c66d52203d610fd;p=pandora-kernel.git bna: Semaphore Lock Fix Remove a BUG_ON() as it is not required. Change the unconditional write to release a semaphore to read sem first and then write. This will eliminate the possibility of sem getting locked while trying to release it in case if previous sem_get operation failed. Signed-off-by: Gurunatha Karaje Signed-off-by: Rasesh Mody Signed-off-by: David S. Miller --- Reading git-diff-tree failed