diff options
author | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-09-13 15:28:16 -0700 |
---|---|---|
committer | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-10-15 21:18:49 -0700 |
commit | c71c991003f592d3b6357fe58d0103e99371fbbb (patch) | |
tree | 5fc7e0cd17009cac34dd0cd49cae1abde38dd9f5 | |
parent | eee6998395184d87bd8e9c07ce2637caed1207f4 (diff) | |
download | libusb-c71c991003f592d3b6357fe58d0103e99371fbbb.tar.gz |
core: Fix the newly added list_splice_front() function
One statement was missing to preserve the consistency of the list.
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
-rw-r--r-- | libusb/libusbi.h | 1 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/libusb/libusbi.h b/libusb/libusbi.h index 0d4fbe1..8dce535 100644 --- a/libusb/libusbi.h +++ b/libusb/libusbi.h @@ -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; } diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 89f331a..4a87c44 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11566 +#define LIBUSB_NANO 11567 |