]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
net/net: Unset grub_net_poll_cards_idle when net module has been unloaded
authorGlenn Washburn <development@efficientek.com>
Fri, 18 Mar 2022 06:51:31 +0000 (01:51 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 4 Apr 2022 17:41:49 +0000 (19:41 +0200)
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>
grub-core/net/net.c

index 1b0e3460144fe7910042f5aaccf44e5fb03b2b6b..3eac83d165975ddc5b71af1d00beb0623700f433 100644 (file)
@@ -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;
 }