mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH] PM / devfreq: imx: Fix inconsistent IS_ERR and PTR_ERR in imx_bus_init_icc()
@ 2020-05-07 14:28 Markus Elfring
  0 siblings, 0 replies; only message in thread
From: Markus Elfring @ 2020-05-07 14:28 UTC (permalink / raw)
  To: Gustavo A. R. Silva, kernel, linux-arm-kernel, linux-imx, linux-pm
  Cc: kernel-janitors, linux-kernel, 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-07 14:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-07 14:28 [PATCH] PM / devfreq: imx: Fix inconsistent IS_ERR and PTR_ERR in imx_bus_init_icc() Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®