]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: bcm: Reverse semaphore locking in IOCTL_BCM_BUFFER_DOWNLOAD_STOP.
authorKevin McKinney <klmckinney1@gmail.com>
Mon, 28 Nov 2011 01:51:47 +0000 (20:51 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 29 Nov 2011 01:09:52 +0000 (10:09 +0900)
commit45a8d1b376fa0bff2b670fa8d2d51c180df91073
treed766dd5c03e1a0652a05e0500aede459f40f0099
parent25374e9fcd0e461c741799d8b727bfa09cbdff7c
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 <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/bcm/Bcmchar.c