core: Fix the newly added list_splice_front() function
authorChris Dickens <christopher.a.dickens@gmail.com>
Sun, 13 Sep 2020 22:28:16 +0000 (15:28 -0700)
committerChris Dickens <christopher.a.dickens@gmail.com>
Fri, 16 Oct 2020 04:18:49 +0000 (21:18 -0700)
One statement was missing to preserve the consistency of the list.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/libusbi.h
libusb/version_nano.h

index 0d4fbe1705f5b309bd8c8f38fe573220e0f11800..8dce535f9e6bf984e04f646b78b7195be9bc2d94 100644 (file)
@@ -224,6 +224,7 @@ static inline void list_splice_front(struct list_head *list, struct list_head *h
 {
        list->next->prev = head;
        list->prev->next = head->next;
+       head->next->prev = list->prev;
        head->next = list->next;
 }
 
index 89f331a0aea68b7fe106e63db1aa60734a919e83..4a87c44faaca945b40f7f50fb6678fe9651c6bd4 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11566
+#define LIBUSB_NANO 11567