linux/drivers/uwb
Thomas Pugliese 1fc671b3be uwb: move mutex_lock to error case in uwbd_evt_handle_rc_bp_slot_change
Only acquire rc->uwb_dev.mutex in the error case in
uwbd_evt_handle_rc_bp_slot_change.  This fixes a bug where establishing
a reservation on a new channel will fail if we were unable to establish
a reservation on the previous channel due to DRP conflict.

If rc->uwb_dev.mutex is acquired in the non-error case when the uwb
system is attempting to start beaconing, it will block because the start
beaconing code is holding this mutex.  This prevents any other
notifications from the URC from being processed.  In particular, the
DRP_AVAILABILITY notification will not be processed during the start
beaconing process which can result in a failure to establish a
reservation.  It is safe to not hold the mutex in the non-error
case since the only other place rc->uwb_dev.beacon_slot is accessed is
in the same worker thread that uwbd_evt_handle_rc_bp_slot_change
executes in.

Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-12-20 12:19:44 -08:00
..
i1480
address.c
allocator.c
beacon.c uwb: move mutex_lock to error case in uwbd_evt_handle_rc_bp_slot_change 2013-12-20 12:19:44 -08:00
driver.c
drp-avail.c
drp-ie.c uwb: Staticize local symbols 2013-08-19 17:08:16 -07:00
drp.c usb: uwb: use correct locking calls for rc data 2013-05-21 11:48:03 -07:00
est.c uwb: use %*ph specifier to dump buffer 2013-06-03 14:33:26 -07:00
hwa-rc.c HWA RC: fix a kernel panic when unplugging the HWA dongle 2013-08-12 15:41:08 -07:00
ie-rcv.c
ie.c
Kconfig drivers/uwb: remove depends on CONFIG_EXPERIMENTAL 2012-11-15 17:39:03 -08:00
lc-dev.c UWB: clean up attribute use by using ATTRIBUTE_GROUPS() 2013-10-29 16:43:36 -07:00
lc-rc.c driver-core: constify data for class_find_device() 2013-02-06 12:18:56 -08:00
Makefile
neh.c uwb: fix use of del_timer_sync() in interrupt 2012-04-18 13:15:51 -07:00
pal.c UWB: fix sysfs warning on HWA device unplug. 2013-08-12 15:41:09 -07:00
radio.c uwb: whitespace and comment cleanups 2013-12-20 12:19:13 -08:00
reset.c uwb: fix uwb_dev_unlock() missed at an error path in uwb_rc_cmd_async() 2012-11-26 15:58:43 -08:00
rsv.c uwb: use uwb_rsv_callback instead of calling rsv->callback directly 2013-12-20 12:19:13 -08:00
scan.c
umc-bus.c uwb: Use dev_is_pci() to check whether it is pci device 2013-12-08 18:01:56 -08:00
umc-dev.c uwb: umc-dev: add missing put_device call 2013-12-19 10:26:46 -08:00
umc-drv.c
uwb-debug.c simple_open: automatically convert to simple_open() 2012-04-05 15:25:50 -07:00
uwb-internal.h USB: HWA: fix device probe failure 2013-06-24 16:20:43 -07:00
uwbd.c
whc-rc.c
whci.c uwb/whci: Use module_pci_driver to register driver 2013-05-21 11:48:03 -07:00