summaryrefslogtreecommitdiffstats
path: root/drivers/uio/uio_sercos3.c
diff options
context:
space:
mode:
authorThomas Pugliese <thomas.pugliese@gmail.com>2013-08-09 16:25:37 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-13 00:41:08 +0200
commitc654ecbbfefbeec8fbf202e117364bff48ecaea3 (patch)
tree262c335c73b088ef1851c926f7bfe5f95f8cf33c /drivers/uio/uio_sercos3.c
parentUSB: cdc-wdm: fix race between interrupt handler and tasklet (diff)
downloadlinux-c654ecbbfefbeec8fbf202e117364bff48ecaea3.tar.xz
linux-c654ecbbfefbeec8fbf202e117364bff48ecaea3.zip
HWA RC: fix a kernel panic when unplugging the HWA dongle
This patch fixes a kernel panic that can occur when unplugging the HWA dongle while a downstream device is in the process of disconnecting. This involved 2 changes. First, call usb_lock_device_for_reset before usb_reset_device to synchronize the HWA's post_rest and disconnect routines. Second, set the hwarc->neep_urb and hwarc->rd_buffer to NULL when they are freed in the error path in the post_reset routine. This prevents a double free when the disconnect routine is called and attempts to free those resources again. Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/uio/uio_sercos3.c')
0 files changed, 0 insertions, 0 deletions