summaryrefslogtreecommitdiff
path: root/drivers/net/phy/cicada.c
diff options
context:
space:
mode:
authorKevin McKinney <klmckinney1@gmail.com>2011-11-23 01:25:57 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-27 01:14:48 (GMT)
commitd9f26a6689a3e4ae643fca9c2acda3148b717e63 (patch)
treef9aa6e45e7806b4c151974f533a27438ea006111 /drivers/net/phy/cicada.c
parentabe33fc0933f9221193fc047fbf93cf9db23c8f6 (diff)
downloadlinux-fsl-qoriq-d9f26a6689a3e4ae643fca9c2acda3148b717e63.tar.xz
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 'drivers/net/phy/cicada.c')
0 files changed, 0 insertions, 0 deletions