Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109394024
D32680.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
913 B
Referenced Files
None
Subscribers
None
D32680.diff
View Options
diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c
--- a/sys/cam/cam_periph.c
+++ b/sys/cam/cam_periph.c
@@ -568,9 +568,10 @@
break;
/*
- * Don't match entries like "da 4" as a wired down
- * device, but do match entries like "da 4 target 5"
- * or even "da 4 scbus 1".
+ * Don't allow the mere presence of any attributes of a device
+ * means that it is for a wired down entry. Instead, insist that
+ * one of the matching criteria from camperiphunit be present
+ * for the device.
*/
i = 0;
dname = periph_name;
@@ -580,8 +581,7 @@
break;
/* if no "target" and no specific scbus, skip */
if (resource_int_value(dname, dunit, "target", &val) &&
- (resource_string_value(dname, dunit, "at",&strval)||
- strcmp(strval, "scbus") == 0))
+ resource_string_value(dname, dunit, "at",&strval))
continue;
if (newunit == dunit)
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 5, 12:07 PM (2 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16473961
Default Alt Text
D32680.diff (913 B)
Attached To
Mode
D32680: cam_periph: Remove vestigial "scbus" comparison
Attached
Detach File
Event Timeline
Log In to Comment