[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YcS88mkwxbO8Qy7c@linutronix.de>
Date: Thu, 23 Dec 2021 19:16:18 +0100
From: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
To: Borislav Petkov <bp@...en8.de>
Cc: X86 ML <x86@...nel.org>,
Valentin Schneider <valentin.schneider@....com>,
"Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Alan Stern <stern@...land.harvard.edu>,
Steven Rostedt <rostedt@...dmis.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH -v2] notifier: Return an error when a callback has
already been registered
On 2021-12-23 16:31:01 [+0100], Borislav Petkov wrote:
> From: Borislav Petkov <bp@...e.de>
>
> Return -EEXIST when a notifier callback has already been registered on a
> notifier chain.
>
> This should avoid any homegrown registration tracking at the callsite
> like
>
> https://lore.kernel.org/amd-gfx/20210512013058.6827-1-mukul.joshi@amd.com
>
> for example.
>
> This version is an alternative of
>
> https://lore.kernel.org/r/20211108101157.15189-1-bp@alien8.de
>
> which needed to touch every caller not checking the registration
> routine's return value.
>
> Signed-off-by: Borislav Petkov <bp@...e.de>
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
Sebastian
Powered by blists - more mailing lists