Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9085422pxu; Mon, 28 Dec 2020 06:16:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5zaIkFnTmcsOQUXRbYc3YudvHZGtNjJD0Wr0ZOpDNNqIL2LpXKm8P0hUzbCrg/yl5jzw5 X-Received: by 2002:a05:6402:104e:: with SMTP id e14mr43039785edu.316.1609165007160; Mon, 28 Dec 2020 06:16:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609165007; cv=none; d=google.com; s=arc-20160816; b=Z0MLgZXzE3m0HLLz74X1DaNvEgJQ6Md0x9zOk6cW658Ab1qEKfm69aV4KwLVauHFMm nPsxHbH2DXGuCoipbiHQNlyrdtSjB5+Rqx+KgcZhqtO5l4137/xW++t9PtEp3Z36cm5Q EFS9SDHv+rqYNxdWqbIBkzl9pf6ri3WJ1IaSkKTTjcOos1NPhpCv1/+Gl0AsgzWxHB7x X/nljYJq5M4JoQJe6NhrnIgbuYnWntU0LYEhGUV2VGobC9ZI7UFow0UezTfghFrwU9sq FPjCdhd8L0zrL+yYimJmb04ChRE9eurqPtlMIkGtIQduomjLTxdl2brG+tmRdahFOw7x 7+HQ== 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=qiKqSsAOLmOsgeZSXrpG1mpBRQMH5Fd8Q7eO+37eTYM=; b=MczCICHS9odvg7o7J940bxkyJHxC/+vEmxK28kgvgrAZJ54O2JCfW9LOr+4l7QUHat Zu/R/IIDUNkRw6dHqhvpWTNxBcA01yAdjQLHLPKayXDDntoadXDe+M43xb/wErPRxIO5 IDRvmoCDgemlvXjw7Od/KJ8dLb7t3bZ5lB+XWTvNNKIrxmo8+WNcSKbP5n3xKHiRonxU ZX05la9iGQ7eG1zJ0802X704mtvLOvZDLAdRj5kNggE4GgTZKJsrVrMsnGOj+HBFV2aH m3OoEWtGZ6BB5qRe+BhZYRzy8P9u0X07RzopJWaPZTvqDR3FciWvqY8/CEx8yIsgd7h2 kKAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="h+AW7z/f"; 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 qn10si18915224ejb.591.2020.12.28.06.16.23; Mon, 28 Dec 2020 06:16:47 -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="h+AW7z/f"; 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 S2440329AbgL1OOH (ORCPT + 99 others); Mon, 28 Dec 2020 09:14:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:48962 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440309AbgL1OOC (ORCPT ); Mon, 28 Dec 2020 09:14:02 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9540720731; Mon, 28 Dec 2020 14:13:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164802; bh=fZ6Kn4rPUq9KtioS1e0jKBS0B5PWzIC6EwLWFf1z2Zc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h+AW7z/fSZiMKzFjOaKxGGH7rpjj0M+842MDO/+aNYJRF0d7UoIgjao8M/N6O/chT er+kkCdSfBnvo5CuW+XGgu8abDFKaPJ59fcSKllf2RZHE9BsiHQ0CYI/JkTCu+xRyH 48QtyP0/TfejChmRHP38FuXOy1sQTkVOzZjz7Eqg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Taehee Yoo , Felix Fietkau , Sasha Levin Subject: [PATCH 5.10 303/717] mt76: mt7915: set fops_sta_stats.owner to THIS_MODULE Date: Mon, 28 Dec 2020 13:45:01 +0100 Message-Id: <20201228125035.544901560@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@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: Taehee Yoo [ Upstream commit 5efbe3b1b8992d5f837388091920945c23212159 ] If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: ec9742a8f38e ("mt76: mt7915: add .sta_add_debugfs support") Signed-off-by: Taehee Yoo Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c b/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c index 1049927faf246..d2ac7e5ee60a2 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c @@ -460,6 +460,7 @@ static const struct file_operations fops_sta_stats = { .read = seq_read, .llseek = seq_lseek, .release = single_release, + .owner = THIS_MODULE, }; void mt7915_sta_add_debugfs(struct ieee80211_hw *hw, struct ieee80211_vif *vif, -- 2.27.0