net/net: Unset grub_net_poll_cards_idle when net module has been unloaded

This looks like it was a copy/paste error. If the net module is unloaded,
grub_net_poll_cards_idle should be NULL so that GRUB does not try to call
a function which now doesn't exist.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Glenn Washburn authored and Daniel Kiper committed 2022-04-04 19:41:49 +02:00
1 parent 50ab32578b
commit c142835043
1 file changed
+1 -1
+1 -1
View File
@@ -1948,5 +1948,5 @@ GRUB_MOD_FINI(net)
grub_net_open = NULL; grub_net_open = NULL;
grub_net_fini_hw (0); grub_net_fini_hw (0);
grub_loader_unregister_preboot_hook (fini_hnd); grub_loader_unregister_preboot_hook (fini_hnd);
grub_net_poll_cards_idle = grub_net_poll_cards_idle_real; grub_net_poll_cards_idle = NULL;
} }