On Wed, May 17, 2017 at 05:29:09PM +0200, Johan Hovold wrote: > 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@xxxxxxxxxxxxxxx> # 2.6.38 > Signed-off-by: Johan Hovold <johan@xxxxxxxxxx> > --- > drivers/of/fdt.c | 3 +++ > 1 file changed, 3 insertions(+) Applied, thanks. Rob -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html