From: Kevin McKinney Date: Mon, 28 Nov 2011 01:51:47 +0000 (-0500) Subject: Staging: bcm: Reverse semaphore locking in IOCTL_BCM_BUFFER_DOWNLOAD_STOP. X-Git-Tag: v3.3-rc1~152^2~101^2~161 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19a177e6fb097c2a0dd94aeeb2805f0c04a4185f;p=pandora-kernel.git Staging: bcm: Reverse semaphore locking in IOCTL_BCM_BUFFER_DOWNLOAD_STOP. This patch reorders the semaphore locking. It makes better sense to first evaluate fw_download_sema semaphore then NVMRdmWrmLocl semaphore. The fw_download_sema is suppose to be acquired in the START ioctl. If this is not true, then it does not make sense to continue. Signed-off-by: Kevin McKinney Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed