summaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-09-26 11:14:26 +0300
committerLinus Walleij <linus.walleij@linaro.org>2019-10-05 01:13:25 +0300
commit39b65fbb813089e366b376bd8acc300b6fd646dc (patch)
treed412df923c2ee4c43dc4134c750209e322a93271 /tools/perf/util/scripting-engines/trace-event-python.c
parentf876dbff857b41b0f5c6139fb1db2361cb708279 (diff)
downloadlinux-39b65fbb813089e366b376bd8acc300b6fd646dc.tar.xz
pinctrl: ns2: Fix off by one bugs in ns2_pinmux_enable()
The pinctrl->functions[] array has pinctrl->num_functions elements and the pinctrl->groups[] array is the same way. These are set in ns2_pinmux_probe(). So the > comparisons should be >= so that we don't read one element beyond the end of the array. Fixes: b5aa1006e4a9 ("pinctrl: ns2: add pinmux driver support for Broadcom NS2 SoC") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/20190926081426.GB2332@mwanda Acked-by: Scott Branden <scott.branden@broadcom.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions