Page MenuHomeFreeBSD

D32680.diff
No OneTemporary

D32680.diff

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

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)

Event Timeline