Re: [PATCH v0 39/42] crypto: ccree - check notifier registration return value

Borislav Petkov
2021-11-12T18:48:27Z

On Fri, Nov 12, 2021 at 06:32:33PM +0000, Cristian Marussi wrote:
> Looking at the implementation of atomic_notifier_chain_register() and
> its internal helper down below, I can see that atomic_notifier_chain_register()
> ALWAYS return 0 (O_o) and anyway there is a WARN() in the notifiier core already
> to alert of double registrations.

You can ignore it - we agreed (at least no one has complained against it
yet :)) on doing this instead:

https://lore.kernel.org/r/YYk1xi3eJdMJdjHC@zn.tnic

--
Regards/Gruss,
Boris.