[External Mail] Re: [PATCH v3 2/7] net: wwan: t9xx: Add control plane transaction layer
Wu. JackBB (GSM)
JackBB_Wu at compal.com
Wed Jul 8 02:30:12 PDT 2026
Hi Andrew,
> > We will also remove all unnecessary devm_kfree() calls from probe
> > error paths and remove paths, keeping them only where resources
> > are freed and re-allocated at runtime (e.g., CLDMA queue lifecycle
> > during modem reset cycles).
>
> There is no point using devm_ if you are going to manually manage
> their release. Anything which has a shorter lifetime than the device
> should use kzalloc()/kfree().
We will convert all runtime-managed resources from
devm_kzalloc/devm_kfree to plain kzalloc/kfree, since they have
shorter lifetimes than the device. Only device-lifetime resources
will remain as devm_kzalloc.
Thanks.
Jack Wu
More information about the Linux-mediatek
mailing list