[External Mail] Re: [PATCH v3 2/7] net: wwan: t9xx: Add control plane transaction layer

Andrew Lunn andrew at lunn.ch
Thu Jul 2 06:17:07 PDT 2026


> 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().

       Andrew



More information about the linux-arm-kernel mailing list