[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOZdJXXRgrYUEcX4f5zRuKgX-Dtbpvf-SV4-8rjuohv3=0NJhQ@mail.gmail.com>
Date: Wed, 14 Jan 2015 17:38:22 -0600
From: Timur Tabi <timur@...eaurora.org>
To: Pramod Gurav <pramod.gurav@...rtplayin.com>
Cc: lkml <linux-kernel@...r.kernel.org>, linux-arm-msm@...r.kernel.org,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
Linus Walleij <linus.walleij@...aro.org>,
Bjorn Andersson <bjorn.andersson@...ymobile.com>,
Stephen Boyd <sboyd@...eaurora.org>,
"Ivan T. Ivanov" <iivanov@...sol.com>,
Andy Gross <agross@...eaurora.org>
Subject: Re: [PATCH v3 4/4] pinctrl: qcom: Add support for reset for apq8064
On Fri, Aug 29, 2014 at 9:30 AM, Pramod Gurav
<pramod.gurav@...rtplayin.com> wrote:
>
> +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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists