diff options
author | Kevin McKinney <klmckinney1@gmail.com> | 2011-11-23 02:25:57 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-27 02:14:48 +0100 |
commit | d9f26a6689a3e4ae643fca9c2acda3148b717e63 (patch) | |
tree | f9aa6e45e7806b4c151974f533a27438ea006111 /Documentation/blackfin | |
parent | Staging: bcm: Fix semaphore locking bug in, IOCTL_BCM_BUFFER_DOWNLOAD (diff) | |
download | linux-d9f26a6689a3e4ae643fca9c2acda3148b717e63.tar.xz linux-d9f26a6689a3e4ae643fca9c2acda3148b717e63.zip |
Staging: bcm: Fix semaphore locking error when downloading firmware.
This patch releases semaphore locks when
an error occurrs while attempting to
download firmware for the bcm driver.
When downloading firmware for this driver,
a process is expected to call
the following ioctl's in this order:
(1)IOCTL_BCM_BUFFER_DOWNLOAD_START,
(2)IOCTL_BCM_BUFFER_DOWNLOAD, and (3)
IOCTL_BCM_BUFFER_DOWNLOAD_STOP.
Semaphore, “Adapter->fw_download_sema” is
expected to be acquired in the first ioctl,
IOCTL_BCM_BUFFER_DOWNLOAD_START, and it should
block until IOCTL_BCM_BUFFER_DOWNLOAD_STOP
is called. In this case, if an error
occurred before STOP finished, the semaphore
"Adapter->fw_download_sema" was not being released.
Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'Documentation/blackfin')
0 files changed, 0 insertions, 0 deletions