mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
staging: wlan-ng: fix ODEBUG bug in prism2sta_disconnect_usb
commit a1f165a6b7 upstream.
We should cancel hw->usb_work before kfree(hw).
Reported-by: syzbot+6d2e7f6fa90e27be9d62@syzkaller.appspotmail.com
Signed-off-by: Qiujun Huang <hqjagain@gmail.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/1585120006-30042-1-git-send-email-hqjagain@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8b9ab9fd62
commit
eae4e4b970
@@ -179,6 +179,7 @@ static void prism2sta_disconnect_usb(struct usb_interface *interface)
|
||||
|
||||
cancel_work_sync(&hw->link_bh);
|
||||
cancel_work_sync(&hw->commsqual_bh);
|
||||
cancel_work_sync(&hw->usb_work);
|
||||
|
||||
/* Now we complete any outstanding commands
|
||||
* and tell everyone who is waiting for their
|
||||
|
||||
Reference in New Issue
Block a user