aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2018-08-27 10:21:45 +0200
committerRob Herring <robh@kernel.org>2018-08-29 08:06:46 -0500
commit36156f9241cb0f9e37d998052873ca7501ad4b36 (patch)
tree203d1e52a9e5a942a2b99ae0ecb984fa87453df8 /tools
parentLinux 4.19-rc1 (diff)
downloadlinux-36156f9241cb0f9e37d998052873ca7501ad4b36.tar.gz
linux-36156f9241cb0f9e37d998052873ca7501ad4b36.zip
of: add helper to lookup compatible child node
Add of_get_compatible_child() helper that can be used to lookup compatible child nodes. Several drivers currently use of_find_compatible_node() to lookup child nodes while failing to notice that the of_find_ functions search the entire tree depth-first (from a given start node) and therefore can match unrelated nodes. The fact that these functions also drop a reference to the node they start searching from (e.g. the parent node) is typically also overlooked, something which can lead to use-after-free bugs. Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
ertions'>+9 2021-04-23perf map: Fix error return code in maps__clone()Zhen Lei1-2/+5 2021-04-23perf ftrace: Fix access to pid in array when setting a pid filterThomas Richter1-1/+1 2021-04-23perf auxtrace: Fix potential NULL pointer dereferenceLeo Yan1-1/+1 2021-04-23platform/x86: gigabyte-wmi: add support for B550M AORUS PRO-PAlexey Klimov1-0/+4 2021-04-23irqchip/gic-v3: Do not enable irqs when handling spurious interrupsHe Ying1-4/+4 2021-04-23xen/arm: introduce XENFEAT_direct_mapped and XENFEAT_not_direct_mappedStefano Stabellini7-2/+38 2021-04-23xen-pciback: simplify vpci's find hookJan Beulich1-6/+1 2021-04-23xen-blkfront: Fix 'physical' typosBjorn Helgaas1-1/+1 2021-04-23xen-blkback: fix compatibility bug with single page ringsPaul Durrant2-22/+17 2021-04-23xen: Remove support for PV ACPI cpu/memory hotplugBoris Ostrovsky7-1115/+0 2021-04-23xen/pciback: Fix incorrect type warningsMuhammad Usama Anjum1-3/+3 2021-04-22vdpa/mlx5: Set err = -ENOMEM in case dma_map_sg_attrs failsEli Cohen1-1/+3 2021-04-22vhost-vdpa: protect concurrent access to vhost device iotlbXie Yongji1-1/+5