diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-10-22 13:56:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-22 13:56:24 +0200 |
commit | a61635e13f64647c3541a795fe7ff8c8bd2b247e (patch) | |
tree | d52478a20a9cc458b009c5a9aad6ade1e90f5e05 | |
parent | 4e4ecb66bcf087f82a48f0a5bede477332a94665 (diff) | |
parent | 79d2126e7ee6b19d3882b8526a01f89fbd06abda (diff) | |
download | usbutils-a61635e13f64647c3541a795fe7ff8c8bd2b247e.tar.gz |
Merge pull request #137 from undisputed-seraphim/fix-sort-child-device
lsusb-t: Fix recursive sorting on child devices.
-rw-r--r-- | lsusb-t.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -632,6 +632,7 @@ static void sort_dev_siblings(struct usbdevice **d) pp = d; swapped = 0; while (p->next) { + sort_dev_siblings(&p->next); if (p->portnum > p->next->portnum) { t = p->next; p->next = t->next; |