Re: [PATCH V2 2/2] cpufreq: Add Loongson-3 CPUFreq driver support

From: Viresh Kumar
Date: Thu Jul 04 2024 - 03:48:52 EST


On 04-07-24, 15:37, Huacai Chen wrote:
> OK, I have learned that devm_kzalloc() allocated memory will be
> automatically freed at driver dettach.
> But I have another question: can the "kfree(table)" after
> do_service_request() fail be removed? Because I think in this case
> the probe will fail, then no driver detach happens.

Yes that will be taken care of.

--
viresh