Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3562838pxb; Mon, 24 Jan 2022 12:17:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGhA9OgagM2gHYPKqpUxcsPpFZWu4cBHi36oni6XCNVPLBUaYmmMTCYhzoxf+7ulglMfTc X-Received: by 2002:a17:902:7786:b0:14a:e8f4:a9d4 with SMTP id o6-20020a170902778600b0014ae8f4a9d4mr15684803pll.86.1643055434906; Mon, 24 Jan 2022 12:17:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643055434; cv=none; d=google.com; s=arc-20160816; b=pgaaGxBOT5+UTmnG/5B1Dbgzuoul0QFZQ3w2HQwopBy1kufjug0bIsqtBXpOBD97zw aGGwH0KLr0nk/2EoegqRcGtrWIuha5n6AQEb8KdpXp9io1nZRF+otWlma3Bnmiw4jyBu 8+xk+syLW/SqRkW/juZgHCgroVA3iJ0BhG7Fk2SQqRTVaO2DjcQUjLhQ/hq3TLQiJrFy AdXGEim0y0wehj6DXXj0ZDtJqRwvwq6XXNCrxi3+GkG4NSfzB/SEQvP4VeuftpPb5Xdx YCcxdk2J9TOUnvo5WzVOPmStu6fG0YZBMX1EbzGnn08IN645tUASLk4KFUvTxe6xOXeA X0Nw== 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=Gql4btqUu4LM1vC6pGZ49MMbLAxD+XLLSIP8po/YfCY=; b=DygarIFbl4KyBzWCtZfIZGNNrBnaq7oAUStgMZ7q1GqklxX0ElS+EKjJbY9nMInZnf OD6cYqvUgNE3KwiCCS5ESfQa8sTGXrkBopeY5klmdIbFY3qirAOcioP6DQ0yDJX/wyWb rG7QnWc72AQ5uRoPmEJwsK9ThT2GBNeH5cZJRVL0pYSn4JYWAyowOR5Eq153omIAnQ86 qR5V6O93tdyc6bi6AQ+X8HtujLCbxqdY9U8QA4j2FkNCol89JK/latLvdq+ydYJqKSM3 W9Plp15kYyYqWR55DbEfyqSG7NRwcq0RvuaoI+Ge8SGGU5CZfvnIBSZsgnPvl2F+ADR1 iofg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=r46hArvC; 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 s23si14273862plr.204.2022.01.24.12.17.02; Mon, 24 Jan 2022 12:17:14 -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=r46hArvC; 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 S1348534AbiAXTSz (ORCPT + 99 others); Mon, 24 Jan 2022 14:18:55 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:35704 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347237AbiAXTJ6 (ORCPT ); Mon, 24 Jan 2022 14:09:58 -0500 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 B92B2B81215; Mon, 24 Jan 2022 19:09:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF8A2C340E5; Mon, 24 Jan 2022 19:09:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643051396; bh=f7zDL95n+kg9huLTEOAIIEnuKev+HlSFHBWny+tfZwg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r46hArvCvL4qSxHREiHq7qk+IL+0kFpunyOeyfgVt3dRSqxVCjyHlaPbnUZUwRo1/ PdFxiENcTfjYZ6aBtKY5I16kjFrd4J4fqCB8MBpzlU+LLxe9CEnt8Zi0VSaNbpzOXH Y7YssVuZDOUFiR1roQclSto4m88GgfZTZJpS1LsI= 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 4.14 115/186] iwlwifi: remove module loading failure message Date: Mon, 24 Jan 2022 19:43:10 +0100 Message-Id: <20220124183940.810839510@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183937.101330125@linuxfoundation.org> References: <20220124183937.101330125@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 95101f66a886e..ade3c27050471 100644 --- a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c +++ b/drivers/net/wireless/intel/iwlwifi/iwl-drv.c @@ -1494,15 +1494,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