>-----Original Message-----
>From: dri-devel <[email protected]> On Behalf Of
>Rodrigo Vivi
>Sent: Monday, November 23, 2026 6:33 PM
>To: [email protected]
>Cc: [email protected]; Vivi, Rodrigo <[email protected]>
>Subject: [PATCH 1/3] drm/ras: Initialize ret in the list-nodes dump
>
>The drm-ras family is registered by the DRM core, so list-nodes can be
>requested while no node is registered. The loop then does not run and
>drm_ras_nl_list_nodes_dumpit() returns an uninitialized value.
>
>Fixes: c36218dc49f5 ("drm/ras: Introduce the DRM RAS infrastructure over
>generic netlink")
>Signed-off-by: Rodrigo Vivi <[email protected]>
>---
> drivers/gpu/drm/drm_ras.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/gpu/drm/drm_ras.c b/drivers/gpu/drm/drm_ras.c
>index b099eb67836e..4f4777060a4e 100644
>--- a/drivers/gpu/drm/drm_ras.c
>+++ b/drivers/gpu/drm/drm_ras.c
>@@ -130,7 +130,7 @@ int drm_ras_nl_list_nodes_dumpit(struct sk_buff
>*skb,
> struct drm_ras_node *node;
> struct nlattr *hdr;
> unsigned long id;
>- int ret;
>+ int ret = 0;
Reviewed-by: Michael J. Ruhl <[email protected]>
> xa_for_each_start(&drm_ras_xa, id, node, ctx->restart) {
> hdr = genlmsg_iput(skb, info);
>--
>2.56.0