Skip to contentSkip to conversation

PM / devfreq: imx: Fix inconsistent IS_ERR and PTR_ERR in imx_bus_init_icc()

PATCH Markus Elfring 1 participant 1 message May 7, 2020 Kernel janitors

lore
Share & tools
lore
#0 lore raw
Quoted 6 lines

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