diff --git a/src/main/capnhook/hooklib/usb-emu.c b/src/main/capnhook/hooklib/usb-emu.c index eb6b6ce..e8841e9 100644 --- a/src/main/capnhook/hooklib/usb-emu.c +++ b/src/main/capnhook/hooklib/usb-emu.c @@ -243,7 +243,7 @@ _cnh_usb_emu_usbhook_find_devices(struct cnh_usbhook_irp *irp) /* Append at end of bus chain */ it->next = fakebus; /* Keep doubly linked list intact */ - fakebus->prev = it->next; + fakebus->prev = it; } fakebus_dev_tail = NULL;