aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorMarius Cristea <[email protected]>2024-04-25 14:42:32 +0300
committerJonathan Cameron <[email protected]>2024-05-03 11:48:56 +0100
commit51fafb3cd7fcf4f4682693b4d2883e2a5bfffe33 (patch)
tree8e604543524af872fce843018a25dfccfc490820 /tools/perf/scripts/python/net_dropmonitor.py
parentbf8367b00c33c64a9391c262bb2e11d274c9f2a4 (diff)
iio: adc: PAC1934: fix accessing out of bounds array index
Fix accessing out of bounds array index for average current and voltage measurements. The device itself has only 4 channels, but in sysfs there are "fake" channels for the average voltages and currents too. Fixes: 0fb528c8255b ("iio: adc: adding support for PAC193x") Reported-by: Conor Dooley <[email protected]> Signed-off-by: Marius Cristea <[email protected]> Closes: https://lore.kernel.org/linux-iio/20240405-embellish-bonnet-ab5f10560d93@wendy/ Tested-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions