Re: [PATCH] nubus: Call put_device() in bus initialization error path
From: Geert Uytterhoeven
Date: Mon Jan 26 2026 - 06:23:16 EST
On Sat, 13 Dec 2025 at 08:21, Finn Thain <fthain@xxxxxxxxxxxxxx> wrote:
> The error path for bus initialization is missing a call to put_device().
> Add that call. This error path will probably never actually execute, but
> any kernel source code may be subject to static checking or re-use.
>
> Cc: Haoxiang Li <lihaoxiang@xxxxxxxxxxxxxxxx>
> Cc: Daniel Palmer <daniel@xxxxxxxx>
> Suggested-by: Haoxiang Li <lihaoxiang@xxxxxxxxxxxxxxxx>
> Signed-off-by: Finn Thain <fthain@xxxxxxxxxxxxxx>
Reviewed-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
i.e. will queue in the m68k tree for v6.20.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds