Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9084880pxu; Mon, 28 Dec 2020 06:16:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYJ3tt4EL5XuNGwDV8LRGPmiGVAIEqtWhoJ6WYUx+mdh+SFbKWTitbuTMPh2SSSIuFxgpT X-Received: by 2002:a50:8163:: with SMTP id 90mr41661310edc.142.1609164964450; Mon, 28 Dec 2020 06:16:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609164964; cv=none; d=google.com; s=arc-20160816; b=q6oadtdvLYvvPnn5NHchv4BT5pUMLhgurn79cbeNTFehFvqdmRq+c3FnG2IWlkBexp OLxu/NRVbS1QgJZ2LlQ9gCjcpWJZRN90dfMpkfs37fUIwXkZwQT5G1v8/XySJR6GTbce FFM5rxXJ4QEGw0Y/W0/Q+q55cvQjWQnkiU4UZWtB7hUN64K7vVyI7p2E97VqwXSROVgi /djO8NgZh9TtF51N2ViyqJ1DpwFf9PN6yj+5dzUFI088AK9f6ok/q/+OxmEGmahs5VNP oXlD9bZccxJ5xqwn0dXeI7IpVGZIOaviWAlnBum09+me44zwBypC7MWfHMKY4HkjuGHX oQ3w== 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=4MxzuD+jzj78OTIQLZCSf0fyhF4NSwpZUeXDLn65L4Q=; b=TicIRUIfGEUeaTKqXjts6UAIB7L+yvnalHr9g1f5WQhm32BvnVZZSvUlxYRW/aOYGy zHIw81um88MEnKDA7q/2S1CRAcXB4918+pXRXF9WenqzIX5Nr0Ru3bch4SHwXeiReg/r SlIpSOFuQXKZvTJhLfj3XCN8QCaxCfoUuXe+fFPJ7goDrXeLANrtMW0wH4ZbP+scBQrW l9B1m8crk9Xxve5Q4Wwm6D8xECUZoA7hbREf3uYUR4FcLOPS4RSQmrp5Qnr2kxEzPnvQ G09jQudNEsUa5GxN6I9uWf9ooZeDQBjFC8lrM/8bkHFx1bNneajGQTlCYZI0HpIXboZt FcAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cjEwCrUt; 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 b7si19738702edr.549.2020.12.28.06.15.41; Mon, 28 Dec 2020 06:16:04 -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=cjEwCrUt; 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 S2440243AbgL1ONo (ORCPT + 99 others); Mon, 28 Dec 2020 09:13:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:47560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440231AbgL1ONk (ORCPT ); Mon, 28 Dec 2020 09:13:40 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7997D207AB; Mon, 28 Dec 2020 14:13:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164805; bh=jqJfL+IA61ChRHh+GJgYt9xRBt9X2UOH7kO8EdhLkfg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cjEwCrUtR2B0xSN2L4E7jUysO+H5fFI36I/9f8y0V0gX6RwnuvTQP3Mrh4XP+UJvl AItK5b03I5S8YrB5JgRbTPMIuPM/um4Km3+Q7mZa8d1wmvNo7nSYFMrL+uvT69lfNL 2YQp0SvTNS85WN377cum0U1gBtsPENOHmbTtXLkI= 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 304/717] mt76: set fops_tx_stats.owner to THIS_MODULE Date: Mon, 28 Dec 2020 13:45:02 +0100 Message-Id: <20201228125035.591849201@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 f9df085ce1be5c599e4df590ff7ba853786c6d95 ] If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: e57b7901469f ("mt76: add mac80211 driver for MT7915 PCIe-based chipsets") 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 d2ac7e5ee60a2..8f2ad32ade180 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c @@ -233,6 +233,7 @@ static const struct file_operations fops_tx_stats = { .read = seq_read, .llseek = seq_lseek, .release = single_release, + .owner = THIS_MODULE, }; static int mt7915_read_temperature(struct seq_file *s, void *data) -- 2.27.0