diff options
author | 2020-10-02 18:27:00 -0400 | |
---|---|---|
committer | 2020-10-05 20:36:09 +0200 | |
commit | 98d278ca00bd8f62c8bc98bd9e65372d16eb6956 (patch) | |
tree | e4928fce367f64d4143689b2a10190b331a14022 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | leds: ns2: do not guard OF match pointer with of_match_ptr (diff) | |
download | wireguard-linux-98d278ca00bd8f62c8bc98bd9e65372d16eb6956.tar.xz wireguard-linux-98d278ca00bd8f62c8bc98bd9e65372d16eb6956.zip |
leds: lm3697: Fix out-of-bound access
If both LED banks aren't used in device tree, an out-of-bounds
condition in lm3697_init occurs because of the for loop assuming that
all the banks are used. Fix it by adding a variable that contains the
number of used banks.
Signed-off-by: Gabriel David <ultracoolguy@tutanota.com>
[removed extra rename, minor tweaks]
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Cc: stable@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions