linux_dsm_epyc7002/drivers/pinctrl/qcom
Stephen Boyd bcd53f858d 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 <timur@codeaurora.org>
Cc: Pramod Gurav <pramod.gurav@smartplayin.com>
Cc: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Cc: Ivan T. Ivanov <iivanov@mm-sol.com>
Cc: Andy Gross <agross@codeaurora.org>
Fixes: 327455817a "pinctrl: qcom: Add support for reset for apq8064"
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2015-01-19 11:17:45 +01:00
..
Kconfig pinctrl: Qualcomm SPMI PMIC GPIO pin controller driver 2014-10-29 09:28:37 +01:00
Makefile pinctrl: Qualcomm SPMI PMIC MPP pin controller driver 2014-10-29 09:28:37 +01:00
pinctrl-apq8064.c pinctrl: qcom: drop owner assignment from platform_drivers 2014-10-20 16:21:23 +02:00
pinctrl-apq8084.c pinctrl: qcom: drop owner assignment from platform_drivers 2014-10-20 16:21:23 +02:00
pinctrl-ipq8064.c pinctrl: qcom: drop owner assignment from platform_drivers 2014-10-20 16:21:23 +02:00
pinctrl-msm8x74.c pinctrl: qcom: drop owner assignment from platform_drivers 2014-10-20 16:21:23 +02:00
pinctrl-msm8960.c pinctrl: qcom: drop owner assignment from platform_drivers 2014-10-20 16:21:23 +02:00
pinctrl-msm.c pinctrl: qcom: Don't iterate past end of function array 2015-01-19 11:17:45 +01:00
pinctrl-msm.h pinctrl: qcom: Make the target processor value configurable 2014-09-04 18:19:31 +02:00
pinctrl-spmi-gpio.c pinctrl: Qualcomm SPMI PMIC GPIO pin controller driver 2014-10-29 09:28:37 +01:00
pinctrl-spmi-mpp.c pinctrl: Qualcomm SPMI PMIC MPP pin controller driver 2014-10-29 09:28:37 +01:00