linux/drivers/of
David Brazdil 31c8025fac of: restricted dma: Fix condition for rmem init
of_dma_set_restricted_buffer fails to handle negative return values from
of_property_count_elems_of_size, e.g. when the property does not exist.
This results in an attempt to assign a non-existent reserved memory
region to the device and a warning being printed. Fix the condition to
take negative values into account.

Fixes: f3cfd136ae ("of: restricted dma: Don't fail device probe on rmem init failure")
Cc: Will Deacon <will@kernel.org>
Signed-off-by: David Brazdil <dbrazdil@google.com>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20210917131423.2760155-1-dbrazdil@google.com
Signed-off-by: Rob Herring <robh@kernel.org>
2021-09-17 15:58:09 -05:00
..
unittest-data
Kconfig
Makefile
address.c
base.c
device.c of: restricted dma: Fix condition for rmem init 2021-09-17 15:58:09 -05:00
dynamic.c
fdt.c
fdt_address.c
irq.c
kexec.c
kobj.c
of_net.c
of_numa.c
of_private.h
of_reserved_mem.c
overlay.c
pdt.c
platform.c
property.c Revert "of: property: fw_devlink: Add support for "phy-handle" property" 2021-09-15 08:14:32 -05:00
resolver.c
unittest.c