aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorGwendal Grignou <[email protected]>2021-03-26 11:46:02 -0700
committerJonathan Cameron <[email protected]>2021-04-07 08:36:40 +0100
commit6f0078ae704d94b1a93e5f3d0a44cf3d8090fa91 (patch)
tree1756d7e23484f16235f527bf5971254a1c8a87bc /tools/perf/scripts/python/stackcollapse.py
parent194eafc9c1d49b53b59de9821fb63d423344cae3 (diff)
iio: sx9310: Fix access to variable DT array
With the current code, we want to read 4 entries from DT array "semtech,combined-sensors". If there are less, we silently fail as of_property_read_u32_array() returns -EOVERFLOW. First count the number of entries and if between 1 and 4, collect the content of the array. Fixes: 5b19ca2c78a0 ("iio: sx9310: Set various settings from DT") Signed-off-by: Gwendal Grignou <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions