https://github.com/torvalds/linux
Revision 205a8eb7ce713c7f1722297dd97d19dcea6f266c authored by Stephen Warren on 08 October 2012, 22:15:26 UTC, committed by Rob Herring on 17 October 2012, 20:53:04 UTC
The previous definition of for_each_*() would always include the very
first object within the list, irrespective of whether it was marked
deleted, since the deleted flag was not checked on the first object,
but only on any "next" object.

Fix for_each_*() to check the deleted flag in the loop body every
iteration to correct this.

(upstream dtc commit 1762ab42ef77db7ab2776d0d6cba3515150f518a)

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
1 parent 24fb530
History
Tip revision: 205a8eb7ce713c7f1722297dd97d19dcea6f266c authored by Stephen Warren on 08 October 2012, 22:15:26 UTC
dtc: fix for_each_*() to skip first object if deleted
Tip revision: 205a8eb
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.7 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 221.8 KB
Makefile -rw-r--r-- 46.2 KB
README -rw-r--r-- 18.2 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top