commit | 3b9c97093d6e1067f4d24d2bff32f3dd24e0751e | [log] [tgz] |
---|---|---|
author | Stephen Boyd <[email protected]> | Mon Jan 30 14:06:17 2017 -0800 |
committer | David Gibson <[email protected]> | Tue Jan 31 09:50:22 2017 +1100 |
tree | 33661acd3aae1a35391cbbef4efdf1a19b19c497 | |
parent | 43eb551426ea05186ea07140ad4e277eb253c32c [diff] |
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 <[email protected]> Signed-off-by: David Gibson <[email protected]>