summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorDavid Brazdil <dbrazdil@google.com>2021-09-17 14:14:23 +0100
committerRob Herring <robh@kernel.org>2021-09-17 15:58:09 -0500
commit31c8025fac3d8bbff7ce4602338d88efc2d7972c (patch)
treefca26ec506c17775b6b8fb8a3061e729a1b89a60 /Documentation
parentc8087adc8865c76500dbc072a46b61d35f6c908b (diff)
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: f3cfd136aef0 ("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>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions