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)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Mar 2022 17:50:01 +0000 (10:50 -0700)
commitb6aae4277be80f758532dee78b003a7ce7ec9e87
treeb593a43d8d1ff8fb6fb52b038487132dd14178cc
parent543a739f5c6752c9e12ab073218b869c59b4c948
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