aboutsummaryrefslogtreecommitdiff
path: root/livetree.c
diff options
context:
space:
mode:
authorStephen Boyd <stephen.boyd@linaro.org>2017-01-30 14:06:17 -0800
committerDavid Gibson <david@gibson.dropbear.id.au>2017-01-31 09:50:22 +1100
commit3b9c97093d6e1067f4d24d2bff32f3dd24e0751e (patch)
tree33661acd3aae1a35391cbbef4efdf1a19b19c497 /livetree.c
parent43eb551426ea05186ea07140ad4e277eb253c32c (diff)
downloaddtc-3b9c97093d6e1067f4d24d2bff32f3dd24e0751e.zip
dtc-3b9c97093d6e1067f4d24d2bff32f3dd24e0751e.tar.gz
dtc-3b9c97093d6e1067f4d24d2bff32f3dd24e0751e.tar.bz2
dtc: Fix NULL pointer use in dtlabel + dtref case
If we have a construct like this: label: &handle { ... }; Running dtc on it will cause a segfault, because we use 'target' when it could be NULL. Move the add_label() call into the if statement to fix this potentially bad use of a NULL pointer. Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'livetree.c')
0 files changed, 0 insertions, 0 deletions