Re: [net-next,v3,3/3] net: ipa: Grab IMEM slice base/size from DTS
From: Konrad Dybcio
Date: Wed Feb 18 2026 - 06:22:19 EST
On 2/18/26 11:39 AM, Simon Horman wrote:
> This is an AI-generated review of your patch. The human sending this
> email has considered the AI review valid, or at least plausible.
>
> For local reproduction steps see https://netdev-ai.bots.linux.dev/ai-local.html
> ---
[...]
>> + of_node_put(ipa_slice_np);
>> + if (ret)
>> + return ret;
> ^^^^^^^^^^
>
> At this point ipa->mem_virt holds a valid memremap() pointer. Does
> this direct return leak the mapping? Every other error path after the
> memremap() in this function uses goto err_unmap, which calls
> memunmap(ipa->mem_virt). Should this be goto err_unmap instead?
>
> Simon says: This seems to me to be an actual problem.
Yes, the robot proved useful
Konrad