]> git.baikalelectronics.ru Git - kernel.git/commit
usb: wusbcore: fix panic in wusbhc_chid_set
authorThomas Pugliese <thomas.pugliese@gmail.com>
Wed, 23 Apr 2014 19:28:10 +0000 (14:28 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Apr 2014 19:45:41 +0000 (12:45 -0700)
commit564d1f97fa6d0aa5f3da229121060f5c6b1b97ab
tree16afa8c2512d525c3d5acb371f4194c907a2ae8b
parenta40c6d86b03737c98b57e4c6cad5b45198e3b68e
usb: wusbcore: fix panic in wusbhc_chid_set

If no valid CHID value has previously been set on an HWA, writing a
value of all zeros will cause a kernel panic in uwb_radio_stop because
wusbhc->uwb_rc has not been set.  This patch skips the call to
uwb_radio_stop if wusbhc->uwb_rc has not been initialized.

Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/wusbcore/mmc.c