Stephen Boyd 3b9c97093d 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>
2017-01-31 09:50:22 +11:00
2017-01-30 12:18:21 +11:00
2013-01-27 14:21:44 -06:00
2015-07-02 12:36:12 +10:00
2016-12-09 16:30:43 +11:00
2016-12-09 16:30:43 +11:00
2016-12-09 16:30:43 +11:00
2016-07-24 01:05:05 +10:00
2016-07-24 01:05:05 +10:00
2016-12-09 16:30:43 +11:00
2016-12-09 16:30:43 +11:00
2007-06-25 21:43:11 -05:00
2016-12-09 16:30:43 +11:00
2017-01-30 12:09:31 +11:00
2016-09-28 11:29:07 +10:00
2016-07-13 00:44:53 +10:00
2016-07-13 00:44:53 +10:00
2007-12-19 08:20:26 -06:00
2016-12-09 16:30:43 +11:00

The source tree contains the Device Tree Compiler (dtc) toolchain for
working with device tree source and binary files and also libfdt, a
utility library for reading and manipulating the binary format.

DTC and LIBFDT are maintained by:

David Gibson <david@gibson.dropbear.id.au>
Jon Loeliger <jdl@jdl.com>

Mailing list
------------
The following list is for discussion about dtc and libfdt implementation
mailto:devicetree-compiler@vger.kernel.org

Core device tree bindings are discussed on the devicetree-spec list:
mailto:devicetree-spec@vger.kernel.org
Description
android_external_dtc
Readme 2.2 MiB
Languages
C 76.1%
Shell 7%
SWIG 4.8%
Python 3.8%
Assembly 2%
Other 6.3%