From: Markus Elfring Date: Thu, 07 May 2020 14:28:49 +0000 Subject: Re: [PATCH] PM / devfreq: imx: Fix inconsistent IS_ERR and PTR_ERR in imx_bus_init_icc() Message-Id: <043e36c9-51b9-3662-e972-2cea7c8ec431@web.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "Gustavo A. R. Silva" , kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-pm@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Chanwoo Choi , Fabio Estevam , "Gustavo A. R. Silva" , Kyungmin Park , Leonard Crestez , MyungJoo Ham , Sascha Hauer , Shawn Guo > 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. Can the following information be also helpful? Generated by: scripts/coccinelle/tests/odd_ptr_err.cocci Regards, Markus