diff --git a/include/nuttx/list.h b/include/nuttx/list.h index ea03ce9c70..328178b273 100644 --- a/include/nuttx/list.h +++ b/include/nuttx/list.h @@ -269,7 +269,7 @@ #define list_for_every_entry_reverse(list, entry, type, member) \ for(entry = container_of((list)->prev, type, member); \ &entry->member != (list); \ - entry = container_of(entry->member.next, type, member)) + entry = container_of(entry->member.prev, type, member)) /**************************************************************************** * Public Type Definitions