net: Unregister net_default_ip and net_default_mac variables hooks on unload
authorB Horn <b@horn.uk>
Thu, 28 Nov 2024 04:05:04 +0000 (04:05 +0000)
committerFelix Zielcke <fzielcke@z-51.de>
Thu, 3 Jul 2025 16:35:51 +0000 (18:35 +0200)
commitb8183d7bb2ca9126eed161dea2bb40b8887ef737
treead8a966d2f95bcdb640758be95d6c623e6789f60
parent5ac019da929fdb86f5ac5b3b0dfae30b86a5a1ae
net: Unregister net_default_ip and net_default_mac variables hooks on unload

The net module is a dependency of normal. So, it shouldn't be possible
to unload the net. Though unregister variables hooks as a precaution.
It also gets in line with unregistering the other net module hooks.

Signed-off-by: B Horn <b@horn.uk>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Gbp-Pq: Topic cve-2025-jan
Gbp-Pq: Name net-Unregister-net_default_ip-and-net_default_mac-variabl.patch
grub-core/net/net.c