Files
linux/drivers/of
Johan Hovold c3f0eff47d of: fdt: add missing allocation-failure check
commit 49e67dd176 upstream.

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: fe14042358 ("of/flattree: Refactor unflatten_device_tree and add fdt_unflatten_tree")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-05-25 15:46:16 +02:00
..
2016-09-23 09:35:16 +02:00
2014-11-04 13:29:38 +00:00
2017-01-04 14:01:28 -06:00