batman-adv: handle errors in batadv_init()

batadv_init() ignores errors from several initialization helpers, so the
module can load without those registrations in place.

Check the fallible init steps and unwind prior initialization in reverse
order of acquisition on failure.

Signed-off-by: Minhong He <heminhong@kylinos.cn>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:
Minhong He 2026-07-31 10:33:33 +08:00 • committed by Sven Eckelmann
commit 085a411216
No known key found for this signature in database
GPG key ID: 4D0F772BD314F5CB
7 changed files with 63 additions and 13 deletions