[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMuHMdUeCV9th=yc7d1OQ72wPUiSxrUFniyV4tJkVrNmRNcMaQ@mail.gmail.com>
Date: Mon, 4 Jul 2022 09:35:05 +0200
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Yang Yingliang <yangyingliang@...wei.com>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-m68k <linux-m68k@...ts.linux-m68k.org>
Subject: Re: [PATCH] m68k/amiga: fix missing platform_device_unregister() on
error in amiga_init_devices()
Hi Yang,
On Mon, Jul 4, 2022 at 9:27 AM Yang Yingliang <yangyingliang@...wei.com> wrote:
> Add the missing platform_device_unregister() before return
> from amiga_init_devices() in the error handling case.
>
> Fixes: eeed227966da ("m68k/amiga: Add error checks when registering platform devices")
> Reported-by: Hulk Robot <hulkci@...wei.com>
> Signed-off-by: Yang Yingliang <yangyingliang@...wei.com>
Thanks for your patch!
TBH, I don't think it's worth adding this code: this happens during early
kernel startup. If any of these devices fail to register, that must happen
because the system ran out of memory, and thus won't work anyway.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org
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
Powered by blists - more mailing lists