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