android_kernel_samsung_msm8976/drivers/of
Johan Hovold df9fb50ad5 of: fdt: add missing allocation-failure check
commit 49e67dd17649b60b4d54966e18ec9c80198227f0 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>
2019-07-27 21:44:47 +02:00
..
Kconfig
Makefile
address.c Merge remote-tracking branch 'f2fs/linux-3.10.y' into HEAD 2017-04-18 17:02:28 +02:00
base.c
device.c
fdt.c of: fdt: add missing allocation-failure check 2019-07-27 21:44:47 +02:00
irq.c
of_batterydata.c
of_coresight.c
of_i2c.c
of_mdio.c
of_mtd.c
of_net.c
of_pci.c
of_pci_irq.c
of_private.h
of_reserved_mem.c
of_slimbus.c
of_spmi.c
pdt.c
platform.c
selftest.c