diff options
Diffstat (limited to 'include/os')
-rw-r--r-- | include/os/linux/spl/sys/list.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/os/linux/spl/sys/list.h b/include/os/linux/spl/sys/list.h index 74b784e93..be38f328f 100644 --- a/include/os/linux/spl/sys/list.h +++ b/include/os/linux/spl/sys/list.h @@ -26,6 +26,7 @@ #define _SPL_LIST_H #include <sys/types.h> +#include <sys/debug.h> #include <linux/list.h> /* @@ -184,7 +185,8 @@ list_prev(list_t *list, void *object) static inline int list_link_active(list_node_t *node) { - return (node->next != LIST_POISON1) && (node->prev != LIST_POISON2); + EQUIV(node->next == LIST_POISON1, node->prev == LIST_POISON2); + return (node->next != LIST_POISON1); } static inline void |