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 This is the 3.10.67 stable release 2015-04-24 18:04:40 -07:00
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_batterydata: add fast-charge and CC-to-CV threshold configuration 2015-06-04 19:55:34 +05:30
of_coresight.c
of_i2c.c
of_mdio.c
of_mtd.c
of_net.c net: phy: add minimal support for QSGMII PHY 2015-06-17 22:16:05 +05:30
of_pci.c
of_pci_irq.c
of_private.h
of_reserved_mem.c
of_slimbus.c
of_spmi.c
pdt.c
platform.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
selftest.c