summaryrefslogtreecommitdiff
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorGabriel David <ultracoolguy@tutanota.com>2020-10-03 01:27:00 +0300
committerPavel Machek <pavel@ucw.cz>2020-10-05 21:36:09 +0300
commit98d278ca00bd8f62c8bc98bd9e65372d16eb6956 (patch)
treee4928fce367f64d4143689b2a10190b331a14022 /scripts/bpf_helpers_doc.py
parent8fd8f94235c2c925d80b2316e0ab2bdd00af9bae (diff)
downloadlinux-98d278ca00bd8f62c8bc98bd9e65372d16eb6956.tar.xz
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 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions