[PATCH -next] power: supply: mt6370: Fix return value check in mt6370_chg_probe()

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Thu Sep 22 00:25:07 PDT 2022


Il 21/09/22 17:29, Yang Yingliang ha scritto:
> If create_singlethread_workqueue() fails, it returns a null pointer,
> replace IS_ERR() check with NULL pointer check.
> 
> Fixes: 233cb8a47d65 ("power: supply: mt6370: Add MediaTek MT6370 charger driver")
> Signed-off-by: Yang Yingliang <yangyingliang at huawei.com>
> Reviewed-by: ChiaEn Wu <chiaen_wu at richtek.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>





More information about the Linux-mediatek mailing list