diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-05-01 13:11:17 +0800 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2013-05-03 16:20:29 -0700 |
commit | 0fad1573c93563fcd62c992d73e9d25161b80076 (patch) | |
tree | 35ba12428754665c0ebfcf8d3ff9f605cb491889 /discover/Makefile.am | |
parent | a51e41eb1d2545b7eb03ff02604225b9594b11e7 (diff) | |
download | talos-petitboot-0fad1573c93563fcd62c992d73e9d25161b80076.tar.gz talos-petitboot-0fad1573c93563fcd62c992d73e9d25161b80076.zip |
lib/list: Fix handling of empty lists
The current list_for_each_entry_safe marco SEGVs on empty lists; the
list_entry will give us a NULL tmp on the first iteration.
This change removes the use of list_entry, as we're effectively
by-passing its NULL return semantics with our own.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'discover/Makefile.am')
0 files changed, 0 insertions, 0 deletions