diff options
author | Borislav Petkov <[email protected]> | 2021-12-01 22:28:14 +0100 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2021-12-29 10:37:33 +0100 |
commit | 5abb065dca7301de90b7c44bbcdc378e49e4d362 (patch) | |
tree | 2bf97dbf77f38ff9e39921a1d79bb61e972f5951 /scripts/gdb/linux/device.py | |
parent | fc74e0a40e4f9fd0468e34045b0c45bba11dcbb2 (diff) |
notifier: Return an error when a callback has already been registered
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/[email protected]
for example.
This version is an alternative of
https://lore.kernel.org/r/[email protected]
which needed to touch every caller not checking the registration
routine's return value.
Signed-off-by: Borislav Petkov <[email protected]>
Reviewed-by: Sebastian Andrzej Siewior <[email protected]>
Acked-by: Alan Stern <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/device.py')
0 files changed, 0 insertions, 0 deletions