diff options
author | Thomas Pugliese <thomas.pugliese@gmail.com> | 2013-10-01 10:14:56 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-03 15:46:26 -0700 |
commit | 33186c441684de348636f94412d2fc256e641113 (patch) | |
tree | df8348447bd8abb82f60fc564ed78809d5f8fe10 /include/linux/usb/omap_control_usb.h | |
parent | 02c123ee99c793f65af2dbda17d5fe87d448f808 (diff) |
usb: wusbcore: avoid stack overflow in URB enqueue error path
This patch modifies wa_urb_enqueue to return an error and not call the
urb completion routine if it failed to enqueue the urb because the HWA
device is gone. This prevents a stack overflow due to infinite
submit/complete recursion when unplugging the HWA while connected to a
HID device.
Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb/omap_control_usb.h')
0 files changed, 0 insertions, 0 deletions