[PATCH v3 4/4] pinctrl: qcom: Add support for reset for apq8064

From
Timur Tabi <hidden>
Date
2015-01-14 23:38:26
Also in
linux-arm-msm, lkml
Reply to
Pramod Gurav, 2014-08-29
On Fri, Aug 29, 2014 at 9:30 AM, Pramod Gurav
[off-list ref] wrote:
quoted hunk ↗ jump to hunk

+static void msm_pinctrl_setup_pm_reset(struct msm_pinctrl *pctrl)
+{
+       int i = 0;
+       const struct msm_function *func = pctrl->soc->functions;
+
+       for (; i <= pctrl->soc->nfunctions; i++)
Shouldn't this be

            i < pctrl->soc->nfunctions

As it stands, if nfunctions == 0, this function crashes.

-- 
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project.
Thread (15 messages) 15 messages, 5 authors, last reply 2015-01-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help