diff options
| author | David Brazdil <[email protected]> | 2021-09-17 13:14:23 +0000 |
|---|---|---|
| committer | Rob Herring <[email protected]> | 2021-09-17 20:58:09 +0000 |
| commit | 31c8025fac3d8bbff7ce4602338d88efc2d7972c (patch) | |
| tree | fca26ec506c17775b6b8fb8a3061e729a1b89a60 /tools/perf/ui/browsers/annotate.c | |
| parent | dt-bindings: arm: mediatek: mmsys: update mediatek,mmsys.yaml reference (diff) | |
| download | kernel-31c8025fac3d8bbff7ce4602338d88efc2d7972c.tar.gz kernel-31c8025fac3d8bbff7ce4602338d88efc2d7972c.zip | |
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 <[email protected]>
Signed-off-by: David Brazdil <[email protected]>
Acked-by: Will Deacon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Herring <[email protected]>
Diffstat (limited to 'tools/perf/ui/browsers/annotate.c')
0 files changed, 0 insertions, 0 deletions
