Re: [PATCH v7 1/4] gpu: nova-core: move the debugfs root into the module data
From: Alexandre Courbot
Date: Fri Nov 13 2026 - 21:26:19 EST
On Fri Nov 13, 2026 at 4:53 PM JST, Vladislav Zaharov wrote:
> The debugfs root lives in a static that is cleared by a guard field of
> the module data. The guard is built after the driver registration, so if
> the registration fails, the root is never removed and the next module
> load finds the name taken.
>
> Move the root into a DebugfsData owned by the module data, and keep only
> a pointer to it in the static, for devices that cannot reach the module
> data yet. If the registration fails, the root is dropped with the rest
> of the module data.
>
> Fixes: 09691f5d8070 ("gpu: nova-core: create debugfs root in module init")
> Signed-off-by: Vladislav Zaharov <vladazaharova2018@xxxxxxxxx>
Reviewed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>