Thread (16 messages) 16 messages, 5 authors, 2026-02-19

Re: [net-next,v3,3/3] net: ipa: Grab IMEM slice base/size from DTS

From: Konrad Dybcio <hidden>
Date: 2026-02-18 11:21:37
Also in: linux-arm-msm, linux-devicetree, lkml

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
---
[...]
quoted
+		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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help