aboutsummaryrefslogtreecommitdiff
path: root/drivers/pwm/pwm-stm32.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2018-05-01 10:26:59 +0100
committerLee Jones <lee.jones@linaro.org>2018-05-16 09:21:48 +0100
commit1768391c3674b0c6bdc4947121f15fb0c2f47ec4 (patch)
tree9a3634003cdc0672e4874f04078e21bf836cdae3 /drivers/pwm/pwm-stm32.c
parent7169483ce4570bd2918cb7b1ab04c3e095a22713 (diff)
downloadlinux-1768391c3674b0c6bdc4947121f15fb0c2f47ec4.tar.gz
linux-1768391c3674b0c6bdc4947121f15fb0c2f47ec4.tar.bz2
linux-1768391c3674b0c6bdc4947121f15fb0c2f47ec4.zip
mfd: tps65911-comparator: Fix an off by one bug
The COMP1 and COMP2 elements are in 0 and 1 respectively so this code is accessing the wrong elements and one space beyond the end of the array. The "id" variable is never COMP (0) so that code can be removed. Fixes: 6851ad3ab346 ("TPS65911: Comparator: Add comparator driver") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/pwm/pwm-stm32.c')
0 files changed, 0 insertions, 0 deletions