Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177841534
D58670.1795409346.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
583 B
Referenced Files
None
Subscribers
None
D58670.1795409346.diff
View Options
diff --git a/sys/dev/ufshci/ufshci_ctrlr.c b/sys/dev/ufshci/ufshci_ctrlr.c
--- a/sys/dev/ufshci/ufshci_ctrlr.c
+++ b/sys/dev/ufshci/ufshci_ctrlr.c
@@ -448,6 +448,15 @@
bus_release_resource(ctrlr->dev, SYS_RES_IRQ,
rman_get_rid(ctrlr->res), ctrlr->res);
+ /*
+ * The interrupt and the timers are gone, so nothing enqueues new
+ * tasks. Free the taskqueue before the SIM teardown below.
+ */
+ if (ctrlr->taskqueue != NULL) {
+ taskqueue_free(ctrlr->taskqueue);
+ ctrlr->taskqueue = NULL;
+ }
+
ufshci_sim_release_wlun_periph(ctrlr);
mtx_lock(&ctrlr->sc_mtx);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 23, 4:49 AM (11 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41917010
Default Alt Text
D58670.1795409346.diff (583 B)
Attached To
Mode
D58670: ufshci: free the taskqueue on detach
Attached
Detach File
Event Timeline