reboot: Print error message if restart handler has duplicated priority
authorDmitry Osipenko <digetx@gmail.com>
Sun, 30 Jan 2022 23:37:00 +0000 (02:37 +0300)
committerHector Martin <marcan@marcan.st>
Tue, 8 Feb 2022 05:49:05 +0000 (14:49 +0900)
commit83990432e84e28cbb445bfbaa6e05289c8909065
tree0f6622aa088fa4492c3336e996c0f97bd14fde8a
parent4da934ad9ce75f474a970bfd9ac5584c8b5497ba
reboot: Print error message if restart handler has duplicated priority

Add sanity check which ensures that there are no two restart handlers
registered using the same priority. This requirement will become mandatory
once all drivers will be converted to the new API and such errors will be
fixed.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
kernel/reboot.c