Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3602084pxb; Mon, 24 Jan 2022 13:15:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSEc3wrj4Q0OVkcftxEW7SjlEtZvKl51uk1xq3GdzsqrXrIo6w6KCHJoGQYnbcrl84bH/f X-Received: by 2002:a17:902:bb87:b0:148:a2e7:fb52 with SMTP id m7-20020a170902bb8700b00148a2e7fb52mr16195012pls.147.1643058836619; Mon, 24 Jan 2022 13:13:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643058836; cv=none; d=google.com; s=arc-20160816; b=nRaYUCLRvfAjW47b2N6o32ZM4BGOTY2Yp0irIvfkvGFHEwv5aHai9Mqfz06LaMdqqx o7oONgJ/GkrYYRpuobQohRcxB3e5DvPzmF8L/0shwu4dR7q+O+mTMt+cb8N2u8oQ4C6L wcu494ipZgkN5CWqS48XDN7LGJh25uvbUrsNhddq23Ta1PGyEwT4KJ/psG/R056nI3zQ g2sfnioDMy3k5+W5xIsuyhiDbqVyBtb9vlnFD6OhzhKY0Lq4xXIwa5PPBqTdyyZGE/tz +kjdz7H0q8tMUrNRlK5quYggKCMTkU1GFXWYROLSqF1YnXveGaOGBUrprPNHNUsLSaa4 o4tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DBom6Acg/gNbDOd3ROEGwnChh3AHgtdpdqsLzk2Ru3o=; b=t78Ze3pZSCgsSivu6vuIt0TVB4AFty0rjhtUnZWoXK7Pnsw8SZSLf6/ZbNJshd6520 8BmBbmOF4a2HVuatoNnM5JpOM0rG0v7yTuAfhX2+WH6zsMAoKntZDI3aumW8nwzlHDl2 vpnZVSX6ZEZ3wyPV/WcKHy3Il90Dqkogz7XdljhGtNG673nlNkkbXJt9BIpEc2Ccqos8 A38M1r+3MairWfJ+4HlMPKeka/L8wI+250xRmxLhGeY/JbSZZ6k6UP3S+QDULQguTs0p qj9OWWs2QczfHZV/BGNZ/+cFrbK+gvla3pkNpPN/CTFNQF5b/AKK7IkWDCdK5c2NAxoS f9xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=saNl67Fq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j6si8192707pld.55.2022.01.24.13.13.44; Mon, 24 Jan 2022 13:13:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=saNl67Fq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386540AbiAXUfi (ORCPT + 99 others); Mon, 24 Jan 2022 15:35:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355347AbiAXUNa (ORCPT ); Mon, 24 Jan 2022 15:13:30 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC501C06174E; Mon, 24 Jan 2022 11:34:34 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 54E62B811FC; Mon, 24 Jan 2022 19:34:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83B43C340E5; Mon, 24 Jan 2022 19:34:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052873; bh=5jWSEyoXOPCc+nJwcvUbZBzSLJhgsecoSxLzR5hVwFw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=saNl67Fq3l52jnTQABG/5BqJ9nYI20DY3PaxyadRAMhn1F9+bp4dsJu0UMgSxNdk0 V+DZHLOvbqqKChBABfCNZUsZGm8wf/uFDbMmujwJuuQcnPv3F//n1ik+qPv3hst5mJ NVLZxDqDfj2bH7Hdqedk7rxThXuaSJ8AuYYUnH5k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johannes Berg , Luca Coelho , Sasha Levin Subject: [PATCH 5.4 200/320] iwlwifi: remove module loading failure message Date: Mon, 24 Jan 2022 19:43:04 +0100 Message-Id: <20220124184000.439618211@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Johannes Berg [ Upstream commit 6518f83ffa51131daaf439b66094f684da3fb0ae ] When CONFIG_DEBUG_TEST_DRIVER_REMOVE is set, iwlwifi crashes when the opmode module cannot be loaded, due to completing the completion before using drv->dev, which can then already be freed. Fix this by removing the (fairly useless) message. Moving the completion later causes a deadlock instead, so that's not an option. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/20211210091245.289008-2-luca@coelho.fi Signed-off-by: Luca Coelho Signed-off-by: Sasha Levin --- drivers/net/wireless/intel/iwlwifi/iwl-drv.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c b/drivers/net/wireless/intel/iwlwifi/iwl-drv.c index c1a2fb154fe91..83cb2ad03451b 100644 --- a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c +++ b/drivers/net/wireless/intel/iwlwifi/iwl-drv.c @@ -1599,15 +1599,8 @@ static void iwl_req_fw_callback(const struct firmware *ucode_raw, void *context) * else from proceeding if the module fails to load * or hangs loading. */ - if (load_module) { + if (load_module) request_module("%s", op->name); -#ifdef CONFIG_IWLWIFI_OPMODE_MODULAR - if (err) - IWL_ERR(drv, - "failed to load module %s (error %d), is dynamic loading enabled?\n", - op->name, err); -#endif - } failure = false; goto free; -- 2.34.1