Skip to contentSkip to conversation

staging: wlan-ng: fix ODEBUG bug in prism2sta_disconnect_usb

PATCH New Qiujun Huang 1 participant 1 message Mar 25, 2020 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: wlan-ng: fix ODEBUG bug in prism2sta_disconnect_usb

We should cancel hw->usb_work before kfree(hw).

---
 drivers/staging/wlan-ng/prism2usb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/wlan-ng/prism2usb.c +1 -0
index 352556f..4689b21 100644
@@ -180,6 +180,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
Signature · 1 line
1.8.3.1