Thread (13 messages) 13 messages, 2 authors, 2025-02-25

Re: [net-next PATCH v10 2/6] octeontx2-af: CN20k basic mbox operations and structures

From: Paolo Abeni <pabeni@redhat.com>
Date: 2025-02-20 11:50:15
Also in: lkml

On 2/17/25 9:52 AM, Sai Krishna wrote:
quoted hunk ↗ jump to hunk
@@ -2443,6 +2469,18 @@ static int rvu_mbox_init(struct rvu *rvu, struct mbox_wq_info *mw,
 		}
 	}
 
+	ng_rvu_mbox = kzalloc(sizeof(*ng_rvu_mbox), GFP_KERNEL);
+	if (!ng_rvu_mbox) {
+		err = -ENOMEM;
+		goto free_bitmap;
+	}
+
+	rvu->ng_rvu = ng_rvu_mbox
AFAICS rvu->ng_rvu is freed only by rvu_remove(), so it's leaked on the
later error paths.

/P
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help