[PATCH v1 1/3] cpufreq: mediatek: fix passing zero to 'PTR_ERR'
AngeloGioacchino Del Regno
angelogioacchino.delregno at collabora.com
Fri Mar 10 01:30:37 PST 2023
Il 10/03/23 06:17, jia-wei.chang ha scritto:
> From: "Jia-Wei Chang" <jia-wei.chang at mediatek.com>
>
> In order to prevent passing zero to 'PTR_ERR' in
> mtk_cpu_dvfs_info_init(), we fix the return value of of_get_cci() using
> error pointer by explicitly casting error number.
>
> Signed-off-by: Jia-Wei Chang <jia-wei.chang at mediatek.com>
> Fixes: 0daa47325bae ("cpufreq: mediatek: Link CCI device to CPU")
> Reported-by: Dan Carpenter <error27 at gmail.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>
More information about the Linux-mediatek
mailing list