[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AM6PR04MB496619DB404ADC0AC81E813C80A50@AM6PR04MB4966.eurprd04.prod.outlook.com>
Date: Thu, 7 May 2020 13:27:44 +0000
From: Aisheng Dong <aisheng.dong@....com>
To: "Gustavo A. R. Silva" <gustavoars@...nel.org>,
MyungJoo Ham <myungjoo.ham@...sung.com>,
Kyungmin Park <kyungmin.park@...sung.com>,
Chanwoo Choi <cw00.choi@...sung.com>,
Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
dl-linux-imx <linux-imx@....com>,
Leonard Crestez <leonard.crestez@....com>
CC: "linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"Gustavo A. R. Silva" <gustavo@...eddedor.com>
Subject: RE: [PATCH] PM / devfreq: imx: Fix inconsistent IS_ERR and PTR_ERR
> From: Gustavo A. R. Silva <gustavoars@...nel.org>
> Sent: Thursday, May 7, 2020 9:13 PM
>
> Fix inconsistent IS_ERR and PTR_ERR in imx_bus_init_icc().
>
> The proper pointer to be passed as argument to PTR_ERR() is
> priv->icc_pdev.
>
> This bug was detected with the help of Coccinelle.
>
> Fixes: 16c1d2f1b0bd ("PM / devfreq: imx: Register interconnect device")
> Signed-off-by: Gustavo A. R. Silva <gustavoars@...nel.org>
Thanks for the fix.
Reviewed-by: Dong Aisheng <aisheng.dong@....com>
Regards
Aisheng
> ---
> drivers/devfreq/imx-bus.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/devfreq/imx-bus.c b/drivers/devfreq/imx-bus.c index
> 532e7954032f..4f38455ad742 100644
> --- a/drivers/devfreq/imx-bus.c
> +++ b/drivers/devfreq/imx-bus.c
> @@ -88,8 +88,8 @@ static int imx_bus_init_icc(struct device *dev)
> dev, icc_driver_name, -1, NULL, 0);
> if (IS_ERR(priv->icc_pdev)) {
> dev_err(dev, "failed to register icc provider %s: %ld\n",
> - icc_driver_name, PTR_ERR(priv->devfreq));
> - return PTR_ERR(priv->devfreq);
> + icc_driver_name, PTR_ERR(priv->icc_pdev));
> + return PTR_ERR(priv->icc_pdev);
> }
>
> return 0;
> --
> 2.26.2
Powered by blists - more mailing lists