diff options
| author | Gabriel David <[email protected]> | 2020-10-02 22:27:00 +0000 |
|---|---|---|
| committer | Pavel Machek <[email protected]> | 2020-10-05 18:36:09 +0000 |
| commit | 98d278ca00bd8f62c8bc98bd9e65372d16eb6956 (patch) | |
| tree | e4928fce367f64d4143689b2a10190b331a14022 /drivers/usb/cdns3/cdns3-imx.c | |
| parent | leds: ns2: do not guard OF match pointer with of_match_ptr (diff) | |
| download | kernel-98d278ca00bd8f62c8bc98bd9e65372d16eb6956.tar.gz kernel-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 <[email protected]>
[removed extra rename, minor tweaks]
Signed-off-by: Pavel Machek <[email protected]>
Cc: [email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions
