diff options
author | 2017-05-17 17:29:09 +0200 | |
---|---|---|
committer | 2017-05-17 11:36:52 -0500 | |
commit | 49e67dd17649b60b4d54966e18ec9c80198227f0 (patch) | |
tree | 91ae0cb4b14b989597251e71eed5e34c4f4e7a70 /scripts | |
parent | dtc: check.c fix compile error (diff) | |
download | linux-49e67dd17649b60b4d54966e18ec9c80198227f0.tar.gz linux-49e67dd17649b60b4d54966e18ec9c80198227f0.tar.bz2 linux-49e67dd17649b60b4d54966e18ec9c80198227f0.zip |
of: fdt: add missing allocation-failure check
The memory allocator passed to __unflatten_device_tree() (e.g. a wrapped
kzalloc) can fail so add the missing sanity check to avoid dereferencing
a NULL pointer.
Fixes: fe14042358fa ("of/flattree: Refactor unflatten_device_tree and add fdt_unflatten_tree")
Cc: stable <stable@vger.kernel.org> # 2.6.38
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions