From: Glenn Washburn Date: Fri, 18 Mar 2022 06:51:31 +0000 (-0500) Subject: net/net: Unset grub_net_poll_cards_idle when net module has been unloaded X-Git-Tag: grub-2.12-rc1~415 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1428350438a0f76e238785d9d1d16f7f1b3d85f;p=thirdparty%2Fgrub.git 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 Reviewed-by: Daniel Kiper --- diff --git a/grub-core/net/net.c b/grub-core/net/net.c index 1b0e34601..3eac83d16 100644 --- a/grub-core/net/net.c +++ b/grub-core/net/net.c @@ -1948,5 +1948,5 @@ GRUB_MOD_FINI(net) grub_net_open = NULL; grub_net_fini_hw (0); grub_loader_unregister_preboot_hook (fini_hnd); - grub_net_poll_cards_idle = grub_net_poll_cards_idle_real; + grub_net_poll_cards_idle = NULL; }