Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3578682pxb; Mon, 24 Jan 2022 12:40:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsZmMKGgELNsNwi3GR9Rqz2vX49o185G60Nj/4XLWRqGGMcOTVUke14NlXHNMQEPE4hA2b X-Received: by 2002:a17:90b:164e:: with SMTP id il14mr88457pjb.90.1643056777922; Mon, 24 Jan 2022 12:39:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643056777; cv=none; d=google.com; s=arc-20160816; b=efI9XHSUKMWn2WP3EC2OXhACBF3pc7eJf3A3NPNYLU+Mf83q+x6oxId79fMpAth5B2 dpm4q9YeqL0OyzIjRH1XERoEBALrKp/MLcOKzc24uKe7RnLGxQPZHmhbrH3vZ82rDpGU bGPTwU+bhLERYAqHGL3VQmgXQiR6U2RgmW5BYqxt1DxYGylW6O8ju8XJ8xxQ8WUoWJbi /98wA5YHYE1zOOA51I2IJAr6Md2jHNbfytO8nP0d7epKFzT0Xk2cK9AEH1iBnUYIZ1Gt uvQ6pHOU1u7SzgXanvRz/Bsxn1IhAtzghZJH+HEHDKIBLqDLvKS2ZGRQldSS88yXFpZE TrlA== 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=GmpBJG6FbnaRUxE99kkThLbHKrMnUXzvG2JHby540/E=; b=FoOZ9EPFd3QxVanjD7Ya+cYntC13vLLQMXg4NRmyV+awDJPMKBopaAGtVuD2PBHxD0 3si9S8FXNUeCw99Otglxv6PLPfYuVDCbCKAB3qZdq79OFe7Z/NOt6HmMvzN/muNVuF94 q1MchdIUnsTswAL0JAJKODAV2SE/kvBKMm2UCknCmwvmQyH8ysII0lKhUaJNtWVKPn2k P1z7stTcF2ZnGAxqdwrt+cyBz6SAy+3+oSufyew0+2SfXOrvwA8lfNo2yvc3uaxbHMot Vj12QfJcohXXVmneK6K6gMsZLebUb5F2Mo8+r6SqijSpbdfHX+m42onylGNZDExbvUGG Hxew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R05fWYbi; 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 s33si13736950pgm.603.2022.01.24.12.39.22; Mon, 24 Jan 2022 12:39:37 -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=R05fWYbi; 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 S1358569AbiAXTz0 (ORCPT + 99 others); Mon, 24 Jan 2022 14:55:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349076AbiAXTlA (ORCPT ); Mon, 24 Jan 2022 14:41:00 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB718C07A96A; Mon, 24 Jan 2022 11:20:01 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 6AFDF612FA; Mon, 24 Jan 2022 19:20:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C996C340E5; Mon, 24 Jan 2022 19:20:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052000; bh=6DzRQODJCjeMyBnMxcQy/tJblSzRKBAhvfHA3MzPxh0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R05fWYbiTuO0n3zCr3lQI5CfgOuA+8NwMM1SToPClI9HPq3p5hTS9E2DMDorhZ305 vDnPcjZ0IaEvgf6JVa8zAjhLxs+KZOoZdiJw/lPUV9DEp6Xw8KHiOOSVc+tCjrWvRw ZgL7Ef4nAXnmkV4mvlox1uMhfejHvzxDEcjAkEDE= 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.19 156/239] iwlwifi: remove module loading failure message Date: Mon, 24 Jan 2022 19:43:14 +0100 Message-Id: <20220124183948.051913651@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183943.102762895@linuxfoundation.org> References: <20220124183943.102762895@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 72f5df66cdeb5..c44108823f796 100644 --- a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c +++ b/drivers/net/wireless/intel/iwlwifi/iwl-drv.c @@ -1532,15 +1532,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