Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170673448
D58657.id183420.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
499 B
Referenced Files
None
Subscribers
None
D58657.id183420.diff
View Options
diff --git a/sys/dev/ufshci/ufshci_sim.c b/sys/dev/ufshci/ufshci_sim.c
--- a/sys/dev/ufshci/ufshci_sim.c
+++ b/sys/dev/ufshci/ufshci_sim.c
@@ -448,10 +448,8 @@
periph = cam_periph_find(path, "pass");
xpt_path_unlock(path);
- if (periph) {
- xpt_free_path(path);
+ if (periph)
break;
- }
if (timeout - ticks < 0) {
ufshci_printf(ctrlr,
@@ -462,6 +460,8 @@
pause_sbt("ufshci_find_periph", ustosbt(100), 0, C_PREL(1));
}
+ xpt_free_path(path);
+
return periph;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 6, 11:11 PM (22 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36099734
Default Alt Text
D58657.id183420.diff (499 B)
Attached To
Mode
D58657: ufshci: free the lookup path when the periph search times out
Attached
Detach File
Event Timeline
Log In to Comment