diff options
author | trasz <trasz@FreeBSD.org> | 2014-05-07 08:04:41 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2014-05-07 08:04:41 +0000 |
commit | d6c003e92088f30bee1dd2cb9013d5686ad0de3d (patch) | |
tree | 0c6c415073bca0e0617c52662e8eaa0a7db0f34e | |
parent | e278af05e23f09651345ef1d0cf2b2984d5e5c41 (diff) | |
download | FreeBSD-src-d6c003e92088f30bee1dd2cb9013d5686ad0de3d.zip FreeBSD-src-d6c003e92088f30bee1dd2cb9013d5686ad0de3d.tar.gz |
MFC r264405:
Fix periph listing when IOCTL buffer border hits result for wanted bus.
-rw-r--r-- | usr.bin/iscsictl/periphs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/iscsictl/periphs.c b/usr.bin/iscsictl/periphs.c index 78b237f..fb4a686 100644 --- a/usr.bin/iscsictl/periphs.c +++ b/usr.bin/iscsictl/periphs.c @@ -102,6 +102,9 @@ print_periphs(int session_id) ccb.cdm.num_patterns = 0; ccb.cdm.pattern_buf_len = 0; + skip_bus = 1; + skip_device = 1; + /* * We do the ioctl multiple times if necessary, in case there are * more than 100 nodes in the EDT. @@ -120,9 +123,6 @@ print_periphs(int session_id) break; } - skip_bus = 1; - skip_device = 1; - for (i = 0; i < ccb.cdm.num_matches; i++) { switch (ccb.cdm.matches[i].type) { case DEV_MATCH_BUS: { |