aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorStephen Boyd <[email protected]>2015-01-19 11:17:45 +0100
committerLinus Walleij <[email protected]>2015-01-19 11:17:45 +0100
commitbcd53f858d87f52843cc87764b283999126a50d6 (patch)
tree02e579388bad3906b1cd835afe5e4097be2a12a0 /tools/perf/util/trace-event-scripting.c
parent41f632fe177bc4822c2e8236fe7c291e6e9eb6f8 (diff)
pinctrl: qcom: Don't iterate past end of function array
Timur reports that this code crashes if nfunctions is 0. Fix the loop iteration to only consider valid elements of the functions array. Reported-by: Timur Tabi <[email protected]> Cc: Pramod Gurav <[email protected]> Cc: Bjorn Andersson <[email protected]> Cc: Ivan T. Ivanov <[email protected]> Cc: Andy Gross <[email protected]> Fixes: 327455817a92 "pinctrl: qcom: Add support for reset for apq8064" Signed-off-by: Stephen Boyd <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions