diff --git a/sys/vfs/vfs.c b/sys/vfs/vfs.c index 227e087b88..fdc91bfd56 100644 --- a/sys/vfs/vfs.c +++ b/sys/vfs/vfs.c @@ -896,10 +896,11 @@ const vfs_mount_t *vfs_iterate_mounts(const vfs_mount_t *cur) /* empty list */ return NULL; } + node = node->next; } else { node = cur->list_entry.next; - if (node == _vfs_mounts_list.next) { + if (node == _vfs_mounts_list.next->next) { return NULL; } }