Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e1dd8641 authored by Niklas Cassel's avatar Niklas Cassel Committed by Brian Norris
Browse files

mtd: avoid registering reboot notifier twice



Calling mtd_device_parse_register with the same mtd_info
(e.g. registering several partitions on a single device)
would add the same reboot notifier twice, causing an
infinte loop in notifier_chain_register during boot up.

Signed-off-by: default avatarNiklas Cassel <nks@flawful.org>
[Brian: add FIXME comments]
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>

Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent d164ea32
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment