DriverDev-Devel Archive on
 help / color / Atom feed
* [PATCH] staging: wlan-ng: fix ODEBUG bug in prism2sta_disconnect_usb
@ 2020-03-25  7:06 Qiujun Huang
  0 siblings, 0 replies; only message in thread
From: Qiujun Huang @ 2020-03-25  7:06 UTC (permalink / raw)
  To: gregkh, osdevtc; +Cc: devel, linux-kernel, Qiujun Huang

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

Signed-off-by: Qiujun Huang <>
 drivers/staging/wlan-ng/prism2usb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/wlan-ng/prism2usb.c b/drivers/staging/wlan-ng/prism2usb.c
index 352556f..4689b21 100644
--- a/drivers/staging/wlan-ng/prism2usb.c
+++ b/drivers/staging/wlan-ng/prism2usb.c
@@ -180,6 +180,7 @@ static void prism2sta_disconnect_usb(struct usb_interface *interface)
+		cancel_work_sync(&hw->usb_work);
 		/* Now we complete any outstanding commands
 		 * and tell everyone who is waiting for their

devel mailing list

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-25  7:06 [PATCH] staging: wlan-ng: fix ODEBUG bug in prism2sta_disconnect_usb Qiujun Huang

DriverDev-Devel Archive on

Archives are clonable:
	git clone --mirror driverdev-devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 driverdev-devel driverdev-devel/ \
	public-inbox-index driverdev-devel

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone