linux-stable/drivers/of
Ruan Jinjie c364fa869b of: unittest: fix null pointer dereferencing in of_unittest_find_node_by_name()
[ Upstream commit d6ce4f0ea1 ]

when kmalloc() fail to allocate memory in kasprintf(), name
or full_name will be NULL, strcmp() will cause
null pointer dereference.

Fixes: 0d638a07d3 ("of: Convert to using %pOF instead of full_name")
Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20230727080246.519539-1-ruanjinjie@huawei.com
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-23 10:46:56 +02:00
..
unittest-data
Kconfig of: Add OF_DMA_DEFAULT_COHERENT & select it on powerpc 2020-02-14 16:32:13 -05:00
Makefile
address.c of/address: Fix of_node memory leak in of_dma_is_coherent 2020-11-18 18:27:57 +01:00
base.c of: fix missing kobject init for !SYSFS && OF_DYNAMIC config 2020-04-24 08:01:13 +02:00
device.c of: Fix modalias string generation 2023-05-17 11:11:43 +02:00
dynamic.c
fdt.c of: fdt: fix off-by-one error in unflatten_dt_nodes() 2022-09-28 10:56:48 +02:00
fdt_address.c
irq.c
of_mdio.c of: mdio: Add of_node_put() when breaking out of for_each_xx 2022-09-28 10:56:51 +02:00
of_net.c
of_numa.c
of_pci.c
of_pci_irq.c
of_private.h
of_reserved_mem.c of: Fix truncation of memory sizes on 32-bit platforms 2021-07-20 16:17:40 +02:00
overlay.c
pdt.c
platform.c
property.c of: property: decrement node refcount in of_fwnode_get_reference_args() 2022-12-08 11:16:31 +01:00
resolver.c
unittest.c of: unittest: fix null pointer dereferencing in of_unittest_find_node_by_name() 2023-09-23 10:46:56 +02:00