]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu: Use of_property_present()
authorRob Herring (Arm) <robh@kernel.org>
Wed, 31 Jul 2024 19:12:44 +0000 (13:12 -0600)
committerJoerg Roedel <jroedel@suse.de>
Wed, 4 Sep 2024 09:31:01 +0000 (11:31 +0200)
commit04f4f33c941c221645d2a58b46f4d698b0f5aa39
tree9d91abf8b4105752bb506b4be9c62a5e6a2b1c84
parent84b2baf427968c1b2e3ae3b7afcb0118cdee0915
iommu: Use of_property_present()

Use of_property_present() to test for property presence rather than
of_(find|get)_property(). This is part of a larger effort to remove
callers of of_find_property() and similar functions. of_find_property()
leaks the DT struct property and data pointers which is a problem for
dynamically allocated nodes which may be freed.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/20240731191312.1710417-6-robh@kernel.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/fsl_pamu_domain.c
drivers/iommu/of_iommu.c