commit | 33186c441684de348636f94412d2fc256e641113 | [log] [tgz] |
---|---|---|
author | Thomas Pugliese <thomas.pugliese@gmail.com> | Tue Oct 01 10:14:56 2013 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Oct 03 15:46:26 2013 -0700 |
tree | df8348447bd8abb82f60fc564ed78809d5f8fe10 | |
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>