diff mbox series

回复: KASAN: use-after-free Read in usb_anchor_resume_wakeups (2)

Message ID BYAPR11MB26328DAF8FBEF66F008C9CDBFFAA0@BYAPR11MB2632.namprd11.prod.outlook.com (mailing list archive)
State New, archived
Headers show
Series 回复: KASAN: use-after-free Read in usb_anchor_resume_wakeups (2) | expand

Commit Message

Zhang, Qiang Jan. 12, 2021, 4:55 a.m. UTC

diff mbox series

Patch

diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c
index 0687f0ed60b8..c0d8d4b9138b 100644
--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -1131,6 +1131,7 @@  static void xpad_stop_output(struct usb_xpad *xpad)
                                 "timed out waiting for output URB to complete, killing\n");
                        usb_kill_anchored_urbs(&xpad->irq_out_anchor);
                }
+               usb_kill_urb(xpad->irq_out);
        }
 }