Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1nV6Sy-0005Hk-4J for mharc-grub-devel@gnu.org; Fri, 18 Mar 2022 02:52:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nV6Ss-0005BQ-Hw for grub-devel@gnu.org; Fri, 18 Mar 2022 02:52:00 -0400 Received: from [2607:f8b0:4864:20::732] (port=42812 helo=mail-qk1-x732.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nV6Sr-0006BZ-2z for grub-devel@gnu.org; Fri, 18 Mar 2022 02:51:58 -0400 Received: by mail-qk1-x732.google.com with SMTP id 85so6135672qkm.9 for ; Thu, 17 Mar 2022 23:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=X5FCqJngsdw/1KTgS9Y39scuPKD8nsXhCHRoThEfL/U=; b=U3VP0YvbF51SE0vXRvhBa3U3syMU721IQisqmLAv5rcGoIR9tormcEQQwTBjE7KjDq j4MALj72AWRofeSK5w0nfG4Pk+yiJFiJLv+mO1KqdYxIzOb7oQGJaLvVQX32OoZfrB9R z1hLhWX90qkSk2VtZG+AmyrEnLLg1+c04vB6n0wkoFEP4q49S02697r3DufIQn5eZvB7 UtnBZodAqFqffFeEEy+l7IZd+t9DucecvPJ/BgiwsKXdvcD16E4nGDE1reI6BwFN5jay O9gsV3znirN501ugwXztrLdRXqmz2D35fYGTa+HODV+2vZC8E0HNeUg0NOMInFJ4v+CT B5wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=X5FCqJngsdw/1KTgS9Y39scuPKD8nsXhCHRoThEfL/U=; b=uEy0V2QXnWiiv3kK+N8TMJpoQm3mMRxC7+fWFE9jwi5HuVrpKBZEFYsZAIOIss5fSH MFpqFGv9K5eJr9rgBVpr1YpZ1OF1iIZqG/Cx4UAxkc1OJLNad0MaaipTnyftnchUvQpB NVyzCWEalKt6u4EgDTGXkXDQlOvYX6c8tO2NuNEvcBo4SP21WT3jDQefx9RDdAtgSyoc IntSIyTHNb7RlwECi5iUVOQILeYYQoiyCLQKdnbv+E1+CRK29pKGrvt0mrTM0RLGdPRA JdCJNHsdAyE9Kga6guwD9FEWVDGzc3EinBJ5u3Jd2//Bb1TBG7ZelK86pMWYwEestwEW nD9Q== X-Gm-Message-State: AOAM531dQ/Z4DWZ7qo4YGlQ4xEC1bINMKOj9YmLdyUYGLh4nEb1Ecp/I TRbX6LyMhN6u7oVhvndw2ylJxiubkggQeg== X-Google-Smtp-Source: ABdhPJxhvpx5x5npDi0sxi0oVEgkOwb1lT5o9pvDvc4t+5Br6jxj/Gs1OcvloWeLBZs5/+tg1Ra+Ag== X-Received: by 2002:a05:620a:d50:b0:67e:e2b:a552 with SMTP id o16-20020a05620a0d5000b0067e0e2ba552mr4680819qkl.401.1647586316248; Thu, 17 Mar 2022 23:51:56 -0700 (PDT) Received: from localhost.localdomain (51-15-0-88.rev.poneytelecom.eu. [51.15.0.88]) by smtp.gmail.com with ESMTPSA id o6-20020a05620a22c600b0067d247816eesm3471324qki.85.2022.03.17.23.51.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 23:51:56 -0700 (PDT) From: Glenn Washburn To: Daniel Kiper , grub-devel@gnu.org Cc: Glenn Washburn Subject: [PATCH 1/3] net: Unset grub_net_poll_cards_idle when net module has been unloaded Date: Fri, 18 Mar 2022 01:51:31 -0500 Message-Id: <76bbc12ed1236f56316d42df0916efcc78e1ac14.1647586160.git.development@efficientek.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::732 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::732; envelope-from=development@efficientek.com; helo=mail-qk1-x732.google.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2022 06:52:00 -0000 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 --- grub-core/net/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-core/net/net.c b/grub-core/net/net.c index 1b0e346014..3eac83d165 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; } -- 2.27.0