Page MenuHomeFreeBSD

D32681.diff
No OneTemporary

D32681.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
@@ -579,11 +579,11 @@
r = resource_find_dev(&i, dname, &dunit, NULL, NULL);
if (r != 0)
break;
- /* if no "target" and no specific scbus, skip */
- if (resource_int_value(dname, dunit, "target", &val) &&
- resource_string_value(dname, dunit, "at",&strval))
+
+ if (newunit != dunit)
continue;
- if (newunit == dunit)
+ if (resource_int_value(dname, dunit, "target", &val) == 0 ||
+ resource_string_value(dname, dunit, "at", &strval) == 0)
break;
}
if (r != 0)

File Metadata

Mime Type
text/plain
Expires
Wed, Feb 5, 12:23 PM (3 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16474220
Default Alt Text
D32681.diff (623 B)

Event Timeline