lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250711083550.425714-1-oushixiong1025@163.com>
Date: Fri, 11 Jul 2025 16:35:50 +0800
From: oushixiong1025@....com
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Michael Grzeschik <m.grzeschik@...gutronix.de>,
	Sabyrzhan Tasbolatov <snovitoll@...il.com>,
	Frederic Weisbecker <frederic@...nel.org>,
	linux-usb@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	Xu Yang <xu.yang_2@....com>,
	Al Viro <viro@...iv.linux.org.uk>,
	Shixiong Ou <oushixiong@...inos.cn>
Subject: [PATCH] usb: gadget: uvc: destroy worker when function is unbound

From: Shixiong Ou <oushixiong@...inos.cn>

Destroy worker when function is unbound.

Signed-off-by: Shixiong Ou <oushixiong@...inos.cn>
---
 drivers/usb/gadget/function/f_uvc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/gadget/function/f_uvc.c b/drivers/usb/gadget/function/f_uvc.c
index aa6ab666741a..e38477751894 100644
--- a/drivers/usb/gadget/function/f_uvc.c
+++ b/drivers/usb/gadget/function/f_uvc.c
@@ -992,6 +992,7 @@ static void uvc_function_unbind(struct usb_configuration *c,
 	uvcg_info(f, "%s()\n", __func__);
 
 	kthread_cancel_work_sync(&video->hw_submit);
+	kthread_destroy_worker(video->kworker);
 
 	if (video->async_wq)
 		destroy_workqueue(video->async_wq);
-- 
2.25.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ