From patchwork Thu Oct 8 15:50:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823483 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34B50C4363C for ; Thu, 8 Oct 2020 15:52:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D448D20578 for ; Thu, 8 Oct 2020 15:52:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HVdQVGA8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729368AbgJHPwW (ORCPT ); Thu, 8 Oct 2020 11:52:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725802AbgJHPwV (ORCPT ); Thu, 8 Oct 2020 11:52:21 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 029A8C061755; Thu, 8 Oct 2020 08:52:20 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id b193so3754636pga.6; Thu, 08 Oct 2020 08:52:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=m3D6Kmj4pHoutaz/rCS7qlyaBoowYkXG/yMmgXucQh8=; b=HVdQVGA8kdLw7h7OQDnSatWnt2UM4FvjoT7GntRqEcOyzYjF7DigsDKO03o2ef5Tcw fmLOLbbhwwWP3n/pY+60vIPtOt++aOykfC/e5j1VxiXBebp5DP9ircgq+Z1s0fG17LMA 4CwWS/rEFEl4UgVSVeaF58BbGHGwiTdYlvzw6IYNMN5h2aOgtas0sY/ORYAgiJnfRnIg gdB0dLQyimHhiuwZMHvwdQHnmV6mNygOE4n7vOeJRT9/P9F9iYALq49wJabbOojpoMpb N9C4X5eQ4SPBm9rDXoTC+yLY7C3PopLZA5Bwsg8ZNwD2TDhnw3WM+dHAAeBsPCzrt4cE GoiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=m3D6Kmj4pHoutaz/rCS7qlyaBoowYkXG/yMmgXucQh8=; b=dR0bEVhxUdO/8bWOViv8AisO0VFMPFxmC3RZf86rwUz5WTUbmf2r4jM25b5jJ0S50i 5MsxW4UAvIEX/CaiehqZoG6z2zfUDIEqRmO61JlZ1Yt8PWQ3FmNkq/kuwPkGXFCMMRyu VpufqPXcCzvztAwdqaXEp3qIJWuFT5F25wjNShDk686Mcy02tO6dPV8ogj60CmH8xJeg bKBwf2NDI32mVqzkLOhzFiZmj7cSdVlbQk0Flg8mroB1XTAquauHPGi5h39UeSjJn2vr zfuCphkQuRQmjRDAJGyCXUajFVDDOdNVwAMsCRV1TmFzhXL+HHb/RwvYP0OHo+pZsawd rdeg== X-Gm-Message-State: AOAM532LDc+jpXDiqR1ccshwffGL6EUE6XxbsKboz0MUwLUWYC/PGjtm oNcXvOsVva8E0dLf5rKXleU= X-Google-Smtp-Source: ABdhPJx19UvtHzx8iv51HU3jzWKPCcjTX+jkuGDvZg8tt3IcRR7V4sUWQk+TN3cSc6hDhAXfYGz/tw== X-Received: by 2002:a17:90a:7089:: with SMTP id g9mr9042123pjk.4.1602172339528; Thu, 08 Oct 2020 08:52:19 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.52.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:52:18 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 001/117] mac80211: set .owner to THIS_MODULE in debugfs_netdev.c Date: Thu, 8 Oct 2020 15:50:13 +0000 Message-Id: <20201008155209.18025-1-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: e9f207f0ff90 ("[MAC80211]: Add debugfs attributes.") Signed-off-by: Taehee Yoo --- net/mac80211/debugfs_netdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c index fe8a7a87e513..8efa31ae7334 100644 --- a/net/mac80211/debugfs_netdev.c +++ b/net/mac80211/debugfs_netdev.c @@ -127,6 +127,7 @@ static const struct file_operations name##_ops = { \ .write = (_write), \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ } #define _IEEE80211_IF_FILE_R_FN(name) \ From patchwork Thu Oct 8 15:50:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823487 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38361C4363A for ; Thu, 8 Oct 2020 15:52:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D345520578 for ; Thu, 8 Oct 2020 15:52:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FvwfOj3l" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729971AbgJHPw2 (ORCPT ); Thu, 8 Oct 2020 11:52:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725802AbgJHPw1 (ORCPT ); Thu, 8 Oct 2020 11:52:27 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3802C061755; Thu, 8 Oct 2020 08:52:27 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id h6so4654058pgk.4; Thu, 08 Oct 2020 08:52:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ftYPNFaxojXaB4/26EDulnv1x0oPc17+YM4o4qmiv7Y=; b=FvwfOj3lWJTtJyXnza3lQaKG7OVju0ZV97/PIQazXuyO7JcLHmuBsqFEcw1qcULZWJ +Vxy1sU/UuKGpozLoCp/VlYHxtF1yFC6JvhPTjslZqRJ5qgeHMxa1ivsr9mu46hcVvjP /pT/mrLTXDSzzKRbR2+HFMFBvVLb1Bgy1WlWhQ7wsSvOQaXdr4FejwkZv7JDbbBcQguZ 7C3r3apFklMjGs1WwguaGrRazWXJrxIACFA61z4XKzVW0tWTnP1/Q7KZSUHFYCznh6J1 ze5FDbQHxa6WxjjSvmKInSq57ow1hVXP1eeTqxBugU86UB9H7wibhKyDVaDg3fR4U1/8 fu+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ftYPNFaxojXaB4/26EDulnv1x0oPc17+YM4o4qmiv7Y=; b=r/R5wNQrR9xfgJs5LhxEay4lSj4SSdStGAPQEPQV9lx8K/FlVPEaEVHGWhz0L1f58V 6AMzGtG6W2KMggeJSWrynhjtxYHQr29gpeZoQjU7yXbn7DiV4mTTAeaQWVZn1B5eLLk1 Qzf9J/o34FQlqAxr1qLxAK4iZZmKroHjNZy5muY6Vu9dQcGj3cItWSl2YYDIXRAL6iCa uTrfiVTiuSTMqovsRwQtoN5YRxhOtGaOCi52DYwCBLXXSUsvVNiSWKr8rgzW2lL2vQMT MVwvXtqGBGU6QLDSYO+TvB6WIwGt1muBYd9JB/d9XQKMETb3VOnUjpTMdehRwXKetstX 8Kcw== X-Gm-Message-State: AOAM531MnTk1zLcRh61YHK2yx60BBB38Bb9nwJxa4h4ijsAvZ5j+0ElX 4UQTdL16bRATyc+e9JoscPA= X-Google-Smtp-Source: ABdhPJz8200HaV4T+ED+6SZs23nOdiztkwBxnMtGsA9P6/N38Mrg8EvXqZmqjoR6gbUkSSnr/Xjfeg== X-Received: by 2002:a63:8c42:: with SMTP id q2mr5544684pgn.130.1602172347261; Thu, 08 Oct 2020 08:52:27 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.52.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:52:26 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 002/117] mac80211: set rcname_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:14 +0000 Message-Id: <20201008155209.18025-2-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 4b7679a561e5 ("mac80211: clean up rate control API") Signed-off-by: Taehee Yoo --- net/mac80211/rate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/rate.c b/net/mac80211/rate.c index b051f125d3af..4f9d33fc895e 100644 --- a/net/mac80211/rate.c +++ b/net/mac80211/rate.c @@ -218,6 +218,7 @@ const struct file_operations rcname_ops = { .read = rcname_read, .open = simple_open, .llseek = default_llseek, + .owner = THIS_MODULE, }; #endif From patchwork Thu Oct 8 15:50:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823493 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1CA7EC04EBE for ; Thu, 8 Oct 2020 15:52:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B561B20578 for ; Thu, 8 Oct 2020 15:52:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MDZg+iZX" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730195AbgJHPwd (ORCPT ); Thu, 8 Oct 2020 11:52:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729982AbgJHPwa (ORCPT ); Thu, 8 Oct 2020 11:52:30 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBE97C061755; Thu, 8 Oct 2020 08:52:30 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id g29so4670421pgl.2; Thu, 08 Oct 2020 08:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2c1uAx6+iuSHRTfrTgLik1ZGlp05d/a6YUIfd7rJvig=; b=MDZg+iZXvxibY145xyajbHVbBb2Aunu3IknflImWqoYYMhAe2iJ4uYQ/qAcpFYj+O7 xIDaYaW+c+/53NeWwFLh7AQVnI+dd1o1loU56IIyFUUtbie/QRPZjpnBf4FIZA8fpaaF sC2E5p764LGU8hfsQhxopC+A1PGwW1iAiyfyDrJUF7hmwB4O+syCJlYVeLvbvfoV8N9h xN3/1KoGGORWE9T9TP3FRUSU0bf2+ddCUNYSl3cEKd6Gvg5jUnlGMGL5fHNBn7IkRXsw t8PFxnkeVMp4CJ0sDBhcScj6DnHfxL14YBVnynvgtVYVaWOXbhYQ6H3oqFFa4MYTS0PG 2Tyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2c1uAx6+iuSHRTfrTgLik1ZGlp05d/a6YUIfd7rJvig=; b=BKSfuV6L5tiasYu+4n6DOVKNoULHwcf84Wyv8uiwub4Wv+hLuMkleNk6uzgQZvYaXg q/1AEu7pILKxAekEqjeJuBiMGpaqw0twU0o+ZITJ81k1XaPCSdIsPzCoYpmr3D7g3QRd rv6/JOiJtAIFc+XYcmlT7/+NVevgNNLUE7WRQtSZ8kEqbhrbtRWZso4zvnNnJQK+OhHX tc2+24L4bzTGK9HSjUgg2DYk/h2CmbbiVk1hL3GDXDi0lkmz4LT9NpIXRr4Fi8F14PWE gy7M0RiosOjk9/Ps5aOXwkBPjUD06qzh/dzf/UjJCOKUKt/whY2P3JmykHIZ339Ev5QJ 8rkQ== X-Gm-Message-State: AOAM533sjih5wYhCQtSE3qxPD/GwGJcGkqZ0M6J7w2IwZl/35EgkX3Nz 0LXeuOuqNZHgspyjl0BfH9E4rSu1N2k= X-Google-Smtp-Source: ABdhPJyBspy96ram6A5gKOhArjt3bAXzQ3LDnLFdG9bMLfn0bxxeoVbGe9GUbIuuMr1Ce2eKimA7qA== X-Received: by 2002:a17:90a:67cb:: with SMTP id g11mr9094102pjm.56.1602172350521; Thu, 08 Oct 2020 08:52:30 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.52.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:52:29 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 003/117] mac80211: set minstrel_ht_stat_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:15 +0000 Message-Id: <20201008155209.18025-3-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: ec8aa669b839 ("mac80211: add the minstrel_ht rate control algorithm") Signed-off-by: Taehee Yoo --- net/mac80211/rc80211_minstrel_ht_debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/rc80211_minstrel_ht_debugfs.c b/net/mac80211/rc80211_minstrel_ht_debugfs.c index bebb71917742..6021e394e5da 100644 --- a/net/mac80211/rc80211_minstrel_ht_debugfs.c +++ b/net/mac80211/rc80211_minstrel_ht_debugfs.c @@ -173,6 +173,7 @@ static const struct file_operations minstrel_ht_stat_fops = { .read = minstrel_stats_read, .release = minstrel_stats_release, .llseek = no_llseek, + .owner = THIS_MODULE, }; static char * From patchwork Thu Oct 8 15:50:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823495 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78464C4363A for ; Thu, 8 Oct 2020 15:52:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 150E420739 for ; Thu, 8 Oct 2020 15:52:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Gi/MBK/z" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731331AbgJHPwg (ORCPT ); Thu, 8 Oct 2020 11:52:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729982AbgJHPwf (ORCPT ); Thu, 8 Oct 2020 11:52:35 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C65AC061755; Thu, 8 Oct 2020 08:52:34 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id b193so3755199pga.6; Thu, 08 Oct 2020 08:52:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xj0pBgVhNxASlVfolFKflNWPpnHbrw3tqtatCMh94uE=; b=Gi/MBK/zSigEUmRQV5eefcrEvYNXyp2yDzSz0V3A1Y0olRjxPJr8Fg2qK96Pg28Jdb O2YyJWbtbWlD/4qROzv4lhQMei73kiXoqp266WthEXAKoLu3TSSU8FsjjWcY/mKehUvD 7VILyFvwaKEvK/8Lq+zhHGUYmPy1rAyl0EmpRwPUD7h+sYw9eYNtmjUV4McyIyFeLnsr NYdkFzQrEXWEZfb+7hJWDMgN6ZqabiqqgfFse84i78dwmGr7+k1yy+k8MUYtxhTbDu+V THJO8gpspa2PZAAoWK5htYIrJVddxsrbp2CTFcBthT7n3s+HYm8enwTfceyTckvfRadV cNpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xj0pBgVhNxASlVfolFKflNWPpnHbrw3tqtatCMh94uE=; b=lapI3VX9l3dU/nuONtcboVPZ//iNLB43KDs986ikPbPyXzlgeyMhPrE/HmM3p2BtpG QtDESi9H9oL+Xig3d74Balh0L8y4lqSlD/33OV2fHelu6fJemYNHxldUy0pELO/AZTlt Ru3Se2IgNVvd8cp3ax5iH/idoz2Gedx/mW8ijE7UqW/TQnluPfo2q6Kyqe49yvS4/DTu i5Wzl64xGnO0frNIC7UL58Ar0tGJE+Myk1VOo4AS6BOJ/6mKY4Agwhif0Yo9Ngms+V24 /QCuONRCvxDniI4AbP8UezAmeL6soWwGpSquOwhtxlTBLJjuFXt+vFtibeyg05dgpA4D 3MMg== X-Gm-Message-State: AOAM532lfY0PXCvjS/l2JGIZvPIlu60cTjRIorRwB6ZixZUdHj2duhdu lTtDniSRHuJxHZ+VHJu1EK0= X-Google-Smtp-Source: ABdhPJwUWyUV/89Wyk3kcwIfb8yq68HvUAd0AsM8BaiE5evpCm0v2VmtFXC9yfa/RYT/vAhJSJTWmQ== X-Received: by 2002:a17:90a:1704:: with SMTP id z4mr8749305pjd.7.1602172353708; Thu, 08 Oct 2020 08:52:33 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.52.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:52:32 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 004/117] mac80211: set minstrel_ht_stat_csv_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:16 +0000 Message-Id: <20201008155209.18025-4-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 2cae0b6a70d6 ("mac80211: add new Minstrel-HT statistic output via csv") Signed-off-by: Taehee Yoo --- net/mac80211/rc80211_minstrel_ht_debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/rc80211_minstrel_ht_debugfs.c b/net/mac80211/rc80211_minstrel_ht_debugfs.c index 6021e394e5da..cdb51aa460a3 100644 --- a/net/mac80211/rc80211_minstrel_ht_debugfs.c +++ b/net/mac80211/rc80211_minstrel_ht_debugfs.c @@ -312,6 +312,7 @@ static const struct file_operations minstrel_ht_stat_csv_fops = { .read = minstrel_stats_read, .release = minstrel_stats_release, .llseek = no_llseek, + .owner = THIS_MODULE, }; void From patchwork Thu Oct 8 15:50:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823497 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A728EC46466 for ; Thu, 8 Oct 2020 15:52:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5503F20B1F for ; Thu, 8 Oct 2020 15:52:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="r/v5gYqA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731340AbgJHPwi (ORCPT ); Thu, 8 Oct 2020 11:52:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729982AbgJHPwh (ORCPT ); Thu, 8 Oct 2020 11:52:37 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FEDBC061755; Thu, 8 Oct 2020 08:52:37 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id x22so4306806pfo.12; Thu, 08 Oct 2020 08:52:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=D07xhSHbZRL9C0+X//rE0fS4TSWm+mUsSqlmLFIh9qk=; b=r/v5gYqA0bGuSWM6p1W11QwuVKdV2ylqWjVWPd4+0fwxwRRGb0cKghiDtbIrGYJF5V OXfXj3Myg3Dh9649gFL0o/9B0dapmY8nCNwxTc7twac5MBuCA+z49skOwMSlyii76R/F z1Ku42YOK8h3RpRTtfoJdU/LgXS/+ngjhcn0CzUZC8eMBNCmmkXZZOG2xzB6bZ9U4Jlo CkZh88kUSyqADnJvm04sjDqQvXSxZ0384L9Yv/jRV66GxuAqXupGcGTFYStwC1TAy7Zc NnXMJBmjOyiGZqSgwspxl9oVLXGflohDGIxLbxy/bjlBzJqkH6ajunmiOdQ0JDQ8rfvq KtBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=D07xhSHbZRL9C0+X//rE0fS4TSWm+mUsSqlmLFIh9qk=; b=N4SU3KST1CN0oo66NpbHaAn5Wes2b78m1GgDS+lWRAe6ecnMOp0gDH6ovEdM9pdjoz ClvVJqhWLkWNwjhB5w7LG4CUHw+pNdiH+pcflBlDjskLbzXcHP+1N8FSh+dC7sW9971d ZnLb+cWRtFunAHA/cbzioMeEByaITLxXDeA5rJfFR++q8SLLx/PD8/rHA32byCl980L8 /4XPPqXWPWFppIfzvk2aJvp9T41oX4JrZ78jay1HyN38DPIEWjr1QIoVw/PR+TrEkFfo 1oYkQHR6S4Acsn1F0sgh7ZNZ5qnWyiwWUlEPD6uA+vRTwZBsh4uN/mHD82QjGdjKo6Hs fY5A== X-Gm-Message-State: AOAM533r7TYZ7pxTp74mzkyvLvgzmyCVEZBxIObrff0IXWr0lxhzU1rf WXMbU5galgNU3gumKwiPqkA= X-Google-Smtp-Source: ABdhPJwFzlzAQMB/7Vbk2xhUhPxCYzWSuuj1MnM2V6h5WZIs3H49uVQnPCCLxtgmh8CwYkAafY8jsQ== X-Received: by 2002:a62:7c09:0:b029:152:60c9:43b2 with SMTP id x9-20020a627c090000b029015260c943b2mr8069057pfc.79.1602172356737; Thu, 08 Oct 2020 08:52:36 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.52.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:52:35 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 005/117] mac80211: set KEY_OPS.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:17 +0000 Message-Id: <20201008155209.18025-5-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: e9f207f0ff90 ("[MAC80211]: Add debugfs attributes.") Signed-off-by: Taehee Yoo --- net/mac80211/debugfs_key.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/debugfs_key.c b/net/mac80211/debugfs_key.c index 98a713475e0f..ea5908465f2e 100644 --- a/net/mac80211/debugfs_key.c +++ b/net/mac80211/debugfs_key.c @@ -30,6 +30,7 @@ static const struct file_operations key_ ##name## _ops = { \ .read = key_##name##_read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ } #define KEY_OPS_W(name) \ From patchwork Thu Oct 8 15:50:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823499 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5C03C4363A for ; Thu, 8 Oct 2020 15:52:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 72A0C20739 for ; Thu, 8 Oct 2020 15:52:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Mr2/0e5j" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731370AbgJHPwn (ORCPT ); Thu, 8 Oct 2020 11:52:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729982AbgJHPwk (ORCPT ); Thu, 8 Oct 2020 11:52:40 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45B85C061755; Thu, 8 Oct 2020 08:52:40 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id k8so4343048pfk.2; Thu, 08 Oct 2020 08:52:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=R5JUG43ZrxWmAgwHEyoGhWX+Ovce6LVlcxgpntyv0KM=; b=Mr2/0e5j11+f3fA5RfHkdOijEjaT6BztMBWXIYayGBS9BjF71orGHkAvhjoDnye0p+ aF1oTAVHUCF6A7ujrp93D0UPZQRPP8GeompMf1C9rQNiAsFY1NKfEfdgfA9DO8P9EAPc jVgt02zR/ii/ZuBCWi01holtRUpsl5hljHT5pIbYsW5nc52ssYZ5iZisdMu/EScrV2Vq 5cXl50+YwlxdnlZoEJ/EMug6UjofVQA36xXXsouNO6Y/2fi6aK6RZnQr01iinxYr3axd ipOGPdCu7juGVCECsdXFw5GHZY1ZyfevRKeY+lGletTNNGubSaX4cdxidcps+d89FOgh fdaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=R5JUG43ZrxWmAgwHEyoGhWX+Ovce6LVlcxgpntyv0KM=; b=kOhDP82UIuK0qm6MZK8HRkz8CI0BHvC/PH11jXaX0Fu7NQVniH45FJtEGLpyAalwSf sEnvZY/1r1+kaK0BV015jdl87P31LKHqfRiiltg1tFIsQyn/bw9fHJFyY0kIggz/1XkN NHVB0K8MJ0qRNp0K+7HEYFR+uT5V4O/QDKPZWhcq6eCWo4bcgGw2XP06qNfnBlYco4CD 4sFqx6faXjDba9Ko5GSzbBw2zd5n1UQA0VyFUtcZ5aRY8MJsugoebR0/eyTpGvQJrXxQ j2AXtNNagWTgH+8yyer5eOOlKQOWxiuJjAEEO3FWzD1zYg9NTFRxbdPqWgXiTQ+jmKhZ wucA== X-Gm-Message-State: AOAM530hXbwTxo5pX2mMVG2mv8TALc9kMpp1m+zyjKBR4DCp6XXNXx62 V2qpvpOiogOFPZMyEwXnjyk= X-Google-Smtp-Source: ABdhPJxVsfmZ1e2q2Qw6Pb6qECDKozzB+GLKx9FIO+IG5pQgg6ACEauSrfXo83Qnap7sdBaOeQUYcg== X-Received: by 2002:a63:c20f:: with SMTP id b15mr7836254pgd.8.1602172359825; Thu, 08 Oct 2020 08:52:39 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.52.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:52:39 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 006/117] mac80211: set KEY_OPS_W.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:18 +0000 Message-Id: <20201008155209.18025-6-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: d0a77c6569ab ("mac80211: allow writing TX PN in debugfs") Signed-off-by: Taehee Yoo --- net/mac80211/debugfs_key.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/debugfs_key.c b/net/mac80211/debugfs_key.c index ea5908465f2e..b5fe68b683e7 100644 --- a/net/mac80211/debugfs_key.c +++ b/net/mac80211/debugfs_key.c @@ -39,6 +39,7 @@ static const struct file_operations key_ ##name## _ops = { \ .write = key_##name##_write, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ } #define KEY_FILE(name, format) \ From patchwork Thu Oct 8 15:50:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823501 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55CCCC04EBE for ; Thu, 8 Oct 2020 15:52:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F2284217BA for ; Thu, 8 Oct 2020 15:52:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LsdKc4++" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731406AbgJHPwu (ORCPT ); Thu, 8 Oct 2020 11:52:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729982AbgJHPwo (ORCPT ); Thu, 8 Oct 2020 11:52:44 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C15DC061755; Thu, 8 Oct 2020 08:52:43 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id o25so4672024pgm.0; Thu, 08 Oct 2020 08:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OiqcYn8C690f/neGDt4mRrF3Bc386zYmtSC6n8vND08=; b=LsdKc4++rY9KdzG2eQMffwjpcL3jE/TVR+tKr25HBcSVaZT9ZNEycN7W0/MPPng6X3 iDDvoGHUIevFl+EuCUDc6bkRcfpADd1KNyNxrh0ul0FXmL7iLQq5Uoy68iFOrEHHxZhK AgY9pylM0D7u3TkK9So4+kUqy/nI6QOkYiD6E2zrmZ4ORzBFMHS00vLqZKoufeCPjyC+ FwApGVCJQ0BEflMWC1G90r3bVeLUiTa6bSSM+S+ZZHmE5UE7nY0clYY0yeoCQ7oGKsVI RYp0zoNLDV75MdgUhe97qlQ2tCfCZ/4lCtOW+nJbJS+2bKNfCKrtOadIRdyl+Q1HZMd5 gHkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OiqcYn8C690f/neGDt4mRrF3Bc386zYmtSC6n8vND08=; b=dy5+ngvC/vLAmgKBjJ9DllbiSV7jR40kTHehDGbssM08UN6iE/Ud3+YAroTmNHsEKu DShtTCRp6RStsyvlxDVG/IB2XxK7aXt4yOoWQNDzGwMIh26/YlHizwIAjN9AxP2mbGzT MwohJ4de3eLMCXm9xyng8wcjAr1V1xARCG0c9D7dMPtvoXzvWBKhqqsLzfDyenpNnFCL Yb4D3Ld6dtMfCRk75HCW47xrdcfoeFEP5VXYMuF54dR31xtNWC7a4cMlhJf/xYYcauXJ 2IpGnFI3+kCBLolQKZpPWy0WO9ehnGjEqxF8Gk+2eHiBfQhgAFenR1MLbPnLtTrVMzct vKMQ== X-Gm-Message-State: AOAM530TltV2/LtjzFU3wVRaucOXQIUtOIXCwXQtiGE0W4cJKtV9c5Et cHzz0fjwnkVbWet+jz+6R/7TGG+syG8= X-Google-Smtp-Source: ABdhPJyy4XfywKmvZelf/Uewqka1VPy7GC7vP1JJFp7yuxPdV+lTGIns3HgMHlflxZ/fzAX9+kVjWA== X-Received: by 2002:a17:90b:8c:: with SMTP id bb12mr5432411pjb.48.1602172362974; Thu, 08 Oct 2020 08:52:42 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.52.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:52:42 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 007/117] mac80211: set KEY_CONF_OPS.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:19 +0000 Message-Id: <20201008155209.18025-7-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 8f20fc24986a ("[MAC80211]: embed key conf in key, fix driver interface") Signed-off-by: Taehee Yoo --- net/mac80211/debugfs_key.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/debugfs_key.c b/net/mac80211/debugfs_key.c index b5fe68b683e7..d7c0c28045ef 100644 --- a/net/mac80211/debugfs_key.c +++ b/net/mac80211/debugfs_key.c @@ -55,6 +55,7 @@ static const struct file_operations key_ ##name## _ops = { \ .read = key_conf_##name##_read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ } #define KEY_CONF_FILE(name, format) \ From patchwork Thu Oct 8 15:50:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823503 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0825CC46466 for ; Thu, 8 Oct 2020 15:52:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A53BB217BA for ; Thu, 8 Oct 2020 15:52:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="I6ruV0aT" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731400AbgJHPwt (ORCPT ); Thu, 8 Oct 2020 11:52:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730221AbgJHPwq (ORCPT ); Thu, 8 Oct 2020 11:52:46 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 767BBC0613D2; Thu, 8 Oct 2020 08:52:46 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id y20so2945311pll.12; Thu, 08 Oct 2020 08:52:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DykZRLkCtQ9htd/aPPi1KevQSJPPLl8ioPLoUg7iCDU=; b=I6ruV0aT0SbKbNmivtTsSc3QbkRbeqPsS51ghGqK9eiPkZMg3QjJStW025Prflt4yc 5t3GBn7dq+YTFhaBRtQMjqxbzHjSTSFlsIV5Icxo2F2moEOEds0sEMRIwoeVoT7j0VOp S/mRYijrhRhVH8qiMP47upCFqrWgA/le2gaYZUdQlrkYmQY3f4+sydP3hGcrx60iSt3Q GkZonckP4MqYqULzu1AtDCbhCN9hxdiYHkwiSEV03s3UMKXKaf7Ix4S98Mdz+l3pEv/C e72eUPxZ4eHZsvgN2KohV6/CkZKOOgqGzl1Yyzhc2ao+yap0bWyEnOUx+BpuDHINElXh wfSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DykZRLkCtQ9htd/aPPi1KevQSJPPLl8ioPLoUg7iCDU=; b=sNAQ3rRNRzx6thadpdZDEZypkq3RXkpAdnVHGJqojUf2/ClMTytu7t/4cZb3X6T/m4 HX7nriOfStsj97jU+qOCEkmpqAnuekH1z30/Put65dRGfJr0V3IezPGY46A6exaS1KXC x4cb+o8QHMLar1fj7GqCVls/RKKUFCrEmlDTCqFtwyFUg0uYdzjHhOdr7XYO66LgLZAy 6UNF6mELYkS/VFUhn0AWxtWt8AXaOsZHwMLsALtHuouA1TC6l4sfAuQSA5RrEYv4Emgo LAbWM1VuLDyvtxT5lwxi6KUZV7VLHM8Fja/kdUGxutnL+iFq0p3yEIy1zE+NWUgbIR8K i/Mw== X-Gm-Message-State: AOAM533XunxXcbyuYeiuxKbgl0seQmZHzt9iqPX2cktxll97gHBBhEnX DzUyHF/gveOx0/d8Roxd3iY= X-Google-Smtp-Source: ABdhPJxY7ImE16iT/WCwS+04dw4rq1gkRdo2bGfhtCm8ChQuCPLEtIvdcka7sVONMT+GjoDeE3bT5w== X-Received: by 2002:a17:902:7c0d:b029:d3:de09:a3 with SMTP id x13-20020a1709027c0db02900d3de0900a3mr8007289pll.52.1602172366048; Thu, 08 Oct 2020 08:52:46 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.52.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:52:45 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 008/117] mac80211: set STA_OPS.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:20 +0000 Message-Id: <20201008155209.18025-8-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: e9f207f0ff90 ("[MAC80211]: Add debugfs attributes.") Signed-off-by: Taehee Yoo --- net/mac80211/debugfs_sta.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c index 829dcad69c2c..d3366989c6f9 100644 --- a/net/mac80211/debugfs_sta.c +++ b/net/mac80211/debugfs_sta.c @@ -34,6 +34,7 @@ static const struct file_operations sta_ ##name## _ops = { \ .read = sta_##name##_read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ } #define STA_OPS_RW(name) \ From patchwork Thu Oct 8 15:50:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823505 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A364C46466 for ; Thu, 8 Oct 2020 15:52:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D2184215A4 for ; Thu, 8 Oct 2020 15:52:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="rsOIclzf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731412AbgJHPwz (ORCPT ); Thu, 8 Oct 2020 11:52:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731392AbgJHPwt (ORCPT ); Thu, 8 Oct 2020 11:52:49 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 819CFC061755; Thu, 8 Oct 2020 08:52:49 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id 34so4622813pgo.13; Thu, 08 Oct 2020 08:52:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HlPYzI9nQBq4QaBi/Kgsez1Nnhuc1CkWKIrGnqKGLAc=; b=rsOIclzf2POSE2J8ZJ0eXI9n/CQLBoOcyI/S2+a+q4J6fe7Ma3Mu1ecvrW7T3OcboT Zq8q7m13zGPMfMgNSCdnaoFXzFWxS36479co2lwSJi0p4V1/FOL5qcyS73SAlgrlvQXU tu9gRxj/ffTRdFhF4Q2IsD0/pHIO+bkxloEc1vfAsnSI5WpGVPYNNELHWr1K4KaUeu0v 1E+x5UiEQTFDcY0Kjcus4qXsPYll4Orubfsaz7qS9edOOuz64/T7VcF17uOnmReISF9L stb8L1It8LQ9jIb+lPaEyL1Xyz6flGXaryL4GoFkrljngKNNbABku6wYZD+oGFDoafWJ SnFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HlPYzI9nQBq4QaBi/Kgsez1Nnhuc1CkWKIrGnqKGLAc=; b=rwmZPLVGRss98UrndeJ583/GjXvOLe9OpFWQSvIkb7VZdynKa3e0Go9ReiklMIONwX bQo1k4ZOosHfyoYX4QkeDOCXEw0Esn3A/rbuM/nHEHe4Q4idcurAzJ6JA2ZX+50zxge3 c91zK+VzYz0wFki7Gfje1+rczbvMjd+SJwymMdUQ4ixa8Ks6Ha9YVzRXTEYfNqK8MHDd IkghP1FYEoqKESeOGdxQd55q9XguhsZ40t3ygKpxhagdyJms8EX6SNZnmMym/DJ1KaIv HpKN+jaf6J2UHiQ3kX3fjHkufn635yqHOhXaNVE6fQSNBvlMfx9FQVbTqRyI8RNBI7my h9ZQ== X-Gm-Message-State: AOAM532AfUztlrMv2Vz6txK8U0gMvB+9Vms5Du1dVvLJGr3YGRXqSpR1 HS3fj7MdH7Mde4qIH28GoEw= X-Google-Smtp-Source: ABdhPJznE5oRNp4t1wseDxlrSEWy0hyQb5F4/8GnIoGYbxvYyb1sTxYWS/IArQegahXd8+aIpbK6kw== X-Received: by 2002:a17:90a:9415:: with SMTP id r21mr8940389pjo.180.1602172369112; Thu, 08 Oct 2020 08:52:49 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.52.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:52:48 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 009/117] mac80211: set STA_OPS_RW.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:21 +0000 Message-Id: <20201008155209.18025-9-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: a75b4363eaaf ("mac80211: allow controlling aggregation manually") Signed-off-by: Taehee Yoo --- net/mac80211/debugfs_sta.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c index d3366989c6f9..9ce49346c32a 100644 --- a/net/mac80211/debugfs_sta.c +++ b/net/mac80211/debugfs_sta.c @@ -43,6 +43,7 @@ static const struct file_operations sta_ ##name## _ops = { \ .write = sta_##name##_write, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ } #define STA_FILE(name, field, format) \ From patchwork Thu Oct 8 15:50:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823575 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DEC40C4363C for ; Thu, 8 Oct 2020 15:53:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 80292206F7 for ; Thu, 8 Oct 2020 15:53:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DYC0ehBT" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731457AbgJHPxI (ORCPT ); Thu, 8 Oct 2020 11:53:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729869AbgJHPww (ORCPT ); Thu, 8 Oct 2020 11:52:52 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B15FC061755; Thu, 8 Oct 2020 08:52:52 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id f19so4315598pfj.11; Thu, 08 Oct 2020 08:52:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1lzOTnPcS21YNiqg/E2Mnuwona6C8eTvscN2/7/mNOg=; b=DYC0ehBTNNCdj7kwEdPDtQI6kw5hwwSZaq9IpjJQqdY6R/TdjCxZoaMDxvudZAgA9/ BAFVaGc2pu5d2/iXMaTXTS9+6ZqGFTQsygAK+PYPbuaCeuFVzVgIhWczJbHJek3ABjcf kFl0Wxxl1ZkE+G0f5SK1d0dafZgCc37p3rn9RDL2ZOaJTTcD+AZ6GRFe6wiX6rYu1ZbJ k/V7iteXWGFHhV9IMUJt0R0DaUSbRMLCwAPdkBG8tVEcWgxzied5dAVudgMw5EyjvOD2 dbCOrEVGr2JaUeaNhqcGECSAJOYjW9KQO8djlXGZmssa1Sr9f5ijKUTfBBH5e1mNs3jO mAcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1lzOTnPcS21YNiqg/E2Mnuwona6C8eTvscN2/7/mNOg=; b=Mn8pi6/m10y6TknG12jFvq7cIT7WBREAdRU6JXvEja5YOH3dR6PWjFM5h2GeSm68pA W/kIj8dSfYN61gETepGJN/Q3jxM2pcidInnQtyI4rilq8ie9L96VrLLNvUkOD3tDcj+E vcBi6G0f5vTXetfMf4d+4U0msD6Usn84d7hSh+ghwx7EZ5/3HlsA4JSYl9UNI0OTIneE 2r4j0hIq0KglH1dFwdgJz/L0oVsKppavVibkKued9Ash2ci63Xp0lkKSxqnVYD4A5CF4 QxWxxVpB0srXAetAS9rfZTimGeAQesEQvIy0aIm7SPliZY66SdRf2W0sBipW+VWche3v YmrQ== X-Gm-Message-State: AOAM532L6DCeU0DmUU9qu7e559DLps9jDHBaQk1vgTkv2FIiFe22yc2J jO0bvx7Aj6ltFCAr7Ft5E9U= X-Google-Smtp-Source: ABdhPJwpTwyF2uviebYn/JocjFs4QX4iSjwHskFizHx+N5/C0+a4HM4T5DJJmoiphFWrSbJzYycMjA== X-Received: by 2002:a17:90a:9b89:: with SMTP id g9mr8948245pjp.123.1602172372146; Thu, 08 Oct 2020 08:52:52 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.52.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:52:51 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 010/117] mac80211: set DEBUGFS_READONLY_FILE_OPS.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:22 +0000 Message-Id: <20201008155209.18025-10-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: e9f207f0ff90 ("[MAC80211]: Add debugfs attributes.") Signed-off-by: Taehee Yoo --- net/mac80211/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index 54080290d6e2..669d7e13ffe8 100644 --- a/net/mac80211/debugfs.c +++ b/net/mac80211/debugfs.c @@ -46,6 +46,7 @@ static const struct file_operations name## _ops = { \ .read = name## _read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ }; #define DEBUGFS_READONLY_FILE(name, fmt, value...) \ From patchwork Thu Oct 8 15:50:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823507 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61E9CC47095 for ; Thu, 8 Oct 2020 15:52:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0B55620B1F for ; Thu, 8 Oct 2020 15:52:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nRsFPXeg" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731421AbgJHPw5 (ORCPT ); Thu, 8 Oct 2020 11:52:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731413AbgJHPwz (ORCPT ); Thu, 8 Oct 2020 11:52:55 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D19B4C061755; Thu, 8 Oct 2020 08:52:55 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id r21so1293184pgj.5; Thu, 08 Oct 2020 08:52:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=h28qh/0UzImVlEE/u3b4voL2HJ3HMccs4Vkpw5CMmh4=; b=nRsFPXegGHGZ6A/78nvdpB/Yu7sKC/ba459JMPpi0kF6RWsfJy/5eCah8GWvBEmm9h tbofCzH9oOW4Fj0kc9VkmlqQytUqgIhvuf5xzED0Nb2Z5rNnKXOrQuXIQyWfZqrHUsWJ vnNQSr7Mmg+Uk+C9NzgzVPOPgMe46tv3kcOwpQNnQalk93wA0PmGKkNH0Ze+PAZnITIL MN235eIE9HAV1CcY3FX6LUBDakqoPOgtmv3GD+3/cerYfmvWMyFK/obC+gBFMLKnh22d fFtpGcPQV6YtN7Qp4yqFks2uH5q23nNbsm+Ywq3FAucF1t8h6NHnkp8kEZ/+FdSVFcHm YxKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=h28qh/0UzImVlEE/u3b4voL2HJ3HMccs4Vkpw5CMmh4=; b=WCwT3r4g+eM8+6Y3E7HYdzHZ+gMZ0iFSNYIx4VmWKwfwYtaYutdp8NDycGJiLfNzbe z03ei6jh7kn5LtbBjCDCSQS76ZWp6YLqU+joLkBibO8r6tlYNDUn2ippa7kSSQs3udwP zTMYtpBBSfhGQksO0TNuYyRbreYqPBWLZA9qc4Dq4bbKP18JK0CLspPLxoiyfGj8n/SE Pvy0hfKwaUPto5KbqazmIe+ANu1ZIRxcYIM6LVK7ndsJh9cKhbx83NWwqDZXFIaYyvR/ kyQyOWRmJ7sCin5mw7a31Qjhz4WKbgrMoP8OyPGXBbqLXztRw3jdsm4WsBZtU1PJ7lTR ugrQ== X-Gm-Message-State: AOAM530CpzGp2agVrm4pwxbrw4FxiKKzy+JgrPvC4nABA7GI9pcXv98W SgRId+IyjH82K7Ov0wPCyT8TJ3/o9r8= X-Google-Smtp-Source: ABdhPJxoXgA0eFLwWonuXfMX5tz1hKZClV4HtIfsDIHi0anuLincyoqVff4h4LzhL5jus7odclstjA== X-Received: by 2002:a63:c0b:: with SMTP id b11mr8165694pgl.416.1602172375357; Thu, 08 Oct 2020 08:52:55 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.52.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:52:54 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 011/117] mac80211: set aqm_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:23 +0000 Message-Id: <20201008155209.18025-11-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 9399b86c0e9a ("mac80211: add debug knobs for fair queuing") Signed-off-by: Taehee Yoo --- net/mac80211/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index 669d7e13ffe8..e2675db7490b 100644 --- a/net/mac80211/debugfs.c +++ b/net/mac80211/debugfs.c @@ -149,6 +149,7 @@ static const struct file_operations aqm_ops = { .read = aqm_read, .open = simple_open, .llseek = default_llseek, + .owner = THIS_MODULE, }; static ssize_t airtime_flags_read(struct file *file, From patchwork Thu Oct 8 15:50:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823509 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 996B9C4363A for ; Thu, 8 Oct 2020 15:53:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 398E820B1F for ; Thu, 8 Oct 2020 15:53:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Mn2U7bOA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731430AbgJHPxB (ORCPT ); Thu, 8 Oct 2020 11:53:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730244AbgJHPw7 (ORCPT ); Thu, 8 Oct 2020 11:52:59 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09F89C061755; Thu, 8 Oct 2020 08:52:59 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id x16so4664249pgj.3; Thu, 08 Oct 2020 08:52:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Nudno0TMLbF93fxV9Luc8mIVBi0MtdHbJiPr3hJsn2M=; b=Mn2U7bOAw/FYl1MXq+kt29l1xgdRiXRbaRIGdrK6EtlG+ehdbPjvN+eoL4+SR8TSLC SY3rgknzJnVU5QIf660pUp38Im1P+kiqw1FLFXb/ZyaET+KFUJ3PK3G603y8SF0kbRWE 4E4rFPJMpjnX9NyvV9+ER6V3k/H9WY5YNEd/DYCiS3qIMdFxISx4ww7avvoJignvetPN SMSnh+WIup30A0NfNTSxPliToeE+uTiPepi2sl0xojvNMJ71p7lxbv0ZgvIfncBrpJ9K 6xXTIcLs4r7EvfhtuPG38aVTAhMNk8V54oBfvuj2d9pirh2QIjZiZkTS1sIUYFV8Kobu xdkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Nudno0TMLbF93fxV9Luc8mIVBi0MtdHbJiPr3hJsn2M=; b=q1kcxv5qjsGNKKnFS1aRzuAt9muLQeM2ycuRK/K1n5gAqGqw4AzWxfFDexWYp8SPwd 6PSZUAXRqGok80hhGx+Abkqh6IQxJ1Ngfsjq37VOncoSnJ+7NlJy5g+NmVhI/uEggG/c zBFddPPK0/5dMij2wfopo0r57V5IKm8vhBjxpr99Ww5QkF39dcbUdl/iL++YmvVNNrv4 cWxWf4OczZR3k5itCR3uErA658BMdNg9DdU/Mav/cdFphKcUzxi2QA1D7vM50er2tyF8 GhG40maP3LfK/LXztm3tBMAnRTP2gPa5Il15WSQCfQRxSHQSqWIi+TZOCSyzZMiLhvyM 8vqw== X-Gm-Message-State: AOAM531Epj7mqJUZEQ6OIbaXDDaG7k3S1HE06evuR2AG1nDn8KpicWIj GROdcn9IyzH03d/9JkSbi4M= X-Google-Smtp-Source: ABdhPJxwh0STCfQ58bRKqTza1Mv1kG0ToeekCMXy/6xh5ZuMTgHVh1b/xIpMl9QvrZ2ywnjp+3KTzA== X-Received: by 2002:a63:4c43:: with SMTP id m3mr7766462pgl.19.1602172378420; Thu, 08 Oct 2020 08:52:58 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.52.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:52:57 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 012/117] mac80211: debugfs: set airtime_flags_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:24 +0000 Message-Id: <20201008155209.18025-12-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: e322c07f8371 ("mac80211: debugfs: improve airtime_flags handler readability") Signed-off-by: Taehee Yoo --- net/mac80211/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index e2675db7490b..794892fe6622 100644 --- a/net/mac80211/debugfs.c +++ b/net/mac80211/debugfs.c @@ -203,6 +203,7 @@ static const struct file_operations airtime_flags_ops = { .read = airtime_flags_read, .open = simple_open, .llseek = default_llseek, + .owner = THIS_MODULE, }; static ssize_t aql_txq_limit_read(struct file *file, From patchwork Thu Oct 8 15:50:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823581 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89D3CC4363A for ; Thu, 8 Oct 2020 15:53:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3A07D217BA for ; Thu, 8 Oct 2020 15:53:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WoOrMpBW" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731446AbgJHPxH (ORCPT ); Thu, 8 Oct 2020 11:53:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730244AbgJHPxC (ORCPT ); Thu, 8 Oct 2020 11:53:02 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E1B1C061755; Thu, 8 Oct 2020 08:53:02 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id k8so4343918pfk.2; Thu, 08 Oct 2020 08:53:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JACHm6oKXj4X805YMJCH36b46IaUgQQqgzNkmYNvOgM=; b=WoOrMpBWzaUaUTxQR0JEyrIKZxlGcIOZfYHA7+rf0Q76HEjIFAGDXa2ZxcQj96xNqX hi26NuzvEN7mDBh2KIgfU0fq5Hin8PgCzaAX3kw5VEahTcZGHrTB+OJiO+tTxpFWcV8J RCyveWW517PsQAp6qiKONhALSpX7mB6/J1Pp2uv4lXeMG8Odoo8ztXa4QIolvNxOB7Dc CdKQvFgLl9jP/JYNQMBrLpATyYRDpY43+c5Q16Qnis28v3ydyPuAtMhAnMmogcgbZd3z 12fhOqpIg/MwIUvCc4RHBv4fGHohgy8M1UtUiqhtr3WR2fyXfd3GcMRDpT/qm1ci32rv jXgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JACHm6oKXj4X805YMJCH36b46IaUgQQqgzNkmYNvOgM=; b=TPhVOD8XJJdErpGr9zHDiUg+EoHrzZbeT7Z/hsItw7NTC7WaIF4N7ILbo56zbpFRD0 eFI0X5YuCSr9ni0T+Ehld2NJ9kGIEte1iOfUGOkfi3pjdQg/tyowVXGTEj7QVVDz5opf RnejbclWq6oHgInp1ycNdXeNjAo1BatoDe9vzdE08bjy5ArokRK1gCU+l7mFd8qEpQBF 7njo3ysl/Ol+QBE/Qbt6nnZrxVPb67vjxj1kwEyHjyIBRuoMxhPFGIGzYMyCpaEceRPS TCg5pdpTW0pQikF04zMiUslMz+u8Je+hwgTkmR0t1ivIPQFlZmcbu5wTAy3xlb26T3jG rq/A== X-Gm-Message-State: AOAM5310ZL8ntF5PK8sw6dFxaBGLxnkhesvzKw/IqSOKHg9oMk06YuGL FoZX8knqnrpA87FhElKpgFBVAoq0CPM= X-Google-Smtp-Source: ABdhPJzac6JfS6brawVZo1jUEJyMHa8jIGDCvhxgZNpBj6qqDAlOpgXyOVFEou+GUEaqdqlJIaJqsQ== X-Received: by 2002:a17:90a:4f0f:: with SMTP id p15mr9126273pjh.10.1602172381666; Thu, 08 Oct 2020 08:53:01 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.52.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:53:00 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 013/117] mac80211: set aql_txq_limit_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:25 +0000 Message-Id: <20201008155209.18025-13-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 3ace10f5b5ad ("mac80211: Implement Airtime-based Queue Limit (AQL)") Signed-off-by: Taehee Yoo --- net/mac80211/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index 794892fe6622..ff690feb56a4 100644 --- a/net/mac80211/debugfs.c +++ b/net/mac80211/debugfs.c @@ -285,6 +285,7 @@ static const struct file_operations aql_txq_limit_ops = { .read = aql_txq_limit_read, .open = simple_open, .llseek = default_llseek, + .owner = THIS_MODULE, }; static ssize_t force_tx_status_read(struct file *file, From patchwork Thu Oct 8 15:50:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823571 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DE2AC04EBE for ; Thu, 8 Oct 2020 15:53:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D3D93217BA for ; Thu, 8 Oct 2020 15:53:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gxcG9rWo" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726058AbgJHPxK (ORCPT ); Thu, 8 Oct 2020 11:53:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730063AbgJHPxG (ORCPT ); Thu, 8 Oct 2020 11:53:06 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A5C1C0613D2; Thu, 8 Oct 2020 08:53:05 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id y14so4314115pfp.13; Thu, 08 Oct 2020 08:53:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=T1P3vjpDjU+9KxXxsbq876rgerqwTW2vQ6eqsdtxYn8=; b=gxcG9rWo45rxPYd3ATiq6NxkN2HRkxGSetM4MZUx3RyRAjrTqV2gFtPc3Rphlm4uZ9 8OEimP5pwcHT+DW57H5nMxdj6Qw8uhqmRqmtm+6dfWcGpNAdErekMv5/j7jSscgYlbkL YFH9BGgp9i3+UDaBK/d96jInLszHfDJMJ+xfXyx4SCuVWS549HZXF0CLieOPJjREdmUV O1GJ7WMyLNR4KAgnhlimJtgXKSK1RwFUEF7FTuVRn9Skp6OR9AGSXKmhcnZn5aOT0prh QUe+Vjsof+OTsNiZgvy0aiGP6uMwm/ZghylY7hXMT49lLO4XdfpkPLCIaAo50JUlhOuG zyUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=T1P3vjpDjU+9KxXxsbq876rgerqwTW2vQ6eqsdtxYn8=; b=S/7+v0N3wN9oenbUD8pnxCzMJomHVKerlPrBJ0vs5AeDkdnnwAdlRdjhK4F8oNfP9+ MlT7sbtE0Avf06ghKkVFo3mFoqYNCeKjOkrE9GLACm+0H2Xp8jZ6wsSRXDeOG29nngdX UY2T12+lejYpnWGUS/ZausnXt+IARxV4HCy2Gxy9ZSdaxncOKIFiELTkFk322hNQLS9b P2F9fE/fAagPLGy3pq7l3A1IElDkOUopBex+ucH/akxuTgZm25I9+WdPRqyL/Z/Vyjqz MzDQrhjFrrGmz/OG3I1LS5xgdk8IZqgXrLbdCprxYyr8bZyQRLC0Rsiz5+lVPtCwWPa9 7s2g== X-Gm-Message-State: AOAM531vPNH5DQiVJhRMEa6DZK/OniR1IDDngsCmSyDB7SlRgt2T0f5v ZU3QjMWNfihhnP1++Uad7l0= X-Google-Smtp-Source: ABdhPJyfYHS8gv4LvMbGux4K3EspxAEg/9UxdowmVOLtF42yEC9tPtKvux1W1oGeD79M+e84vW5u3w== X-Received: by 2002:a17:90a:46c2:: with SMTP id x2mr9008354pjg.60.1602172384733; Thu, 08 Oct 2020 08:53:04 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.53.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:53:03 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 014/117] mac80211: set force_tx_status_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:26 +0000 Message-Id: <20201008155209.18025-14-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 276d9e82e06c ("mac80211: debugfs option to force TX status frames") Signed-off-by: Taehee Yoo --- net/mac80211/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index ff690feb56a4..a3f3e3add3c2 100644 --- a/net/mac80211/debugfs.c +++ b/net/mac80211/debugfs.c @@ -338,6 +338,7 @@ static const struct file_operations force_tx_status_ops = { .read = force_tx_status_read, .open = simple_open, .llseek = default_llseek, + .owner = THIS_MODULE, }; #ifdef CONFIG_PM From patchwork Thu Oct 8 15:50:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823567 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A8B6C4363A for ; Thu, 8 Oct 2020 15:53:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 431DD206F7 for ; Thu, 8 Oct 2020 15:53:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ti6G6+Ez" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731468AbgJHPxL (ORCPT ); Thu, 8 Oct 2020 11:53:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731454AbgJHPxI (ORCPT ); Thu, 8 Oct 2020 11:53:08 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B0A7C061755; Thu, 8 Oct 2020 08:53:08 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id y14so4314235pfp.13; Thu, 08 Oct 2020 08:53:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SN/h/ec9wr6n93of2IHwVep4zGi4gUdHrJLbLv07L5A=; b=ti6G6+EzJVHxdbAZ0/zRcN7XZ7kCQzf8cbvHWDYmLKa0MbxopRnxuPGK3PmX4EGLhE 6AmiLXQl3TLy18v+4NwzA8gzUxBrq2hnFlLNSr705yEsIyuB8C98MylGiH3/tZmifqVM bmD6Xr6T8Kp8YJz+8K2LK7tfvJhj7V2g3gRjobo6PfE1FywYHNFrMP/W2nHfbhQP589w dHrxv28qQkx3rmOV+yL/dlFJqu/gyGhHEqYs0wZLqi8L4BOW8EglEUZHenRqYuplFlMa KzRyLTtsUh0IFwenckNK2BW8eSv+rfqXCzxSlzMBpsWQv4ldMBoQdS1GrU0tAcQVDW4Z aZnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=SN/h/ec9wr6n93of2IHwVep4zGi4gUdHrJLbLv07L5A=; b=jMt5qIESxBF6A987IgvcChxbW95oWeLinwuyxWLlEB/dPPtjxadm7SiA3vOm3cCiAh AAc8cUD0K+OQ97aDTXOl/fN54bnSvykEG4n3yGuACsOtH35JDBPC0e5k7vcXFVX0y9f2 elpB0+UvLL9o3C3+40OnFLcoX06wH0mheO2sD201VO/kRU5HRj4ZWJI6jBsGszh5k2OK x4FCQCXzemgnn/0KPDUSeR1d+tU/1e+TvB171teXLPGrWcU0fvn54dx45GBHI0yptppV Gg8o0NRj99agPcskhPXFG19HNbuCuNTxJkAahot+GTOgpxGJn6woOAUMlv+BApKT6qHI Ot7w== X-Gm-Message-State: AOAM530PI1Yw9AHzRy2MCh5is34SHNs7Z9M5Xav/7c/+ALFyjzNiS4b/ OIXPrkS8F+VnXJu4rdsuHH0= X-Google-Smtp-Source: ABdhPJz5PXnURxHKFu03oL8B1P31ytQ9vNmy2lGyrApPbIUR4ec60EByFpNFzLXePZrJN5H9Mtbo7w== X-Received: by 2002:a62:1d52:0:b029:152:3cf6:e2a8 with SMTP id d79-20020a621d520000b02901523cf6e2a8mr8089828pfd.46.1602172387915; Thu, 08 Oct 2020 08:53:07 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.53.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:53:07 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 015/117] mac80211: set reset_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:27 +0000 Message-Id: <20201008155209.18025-15-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 827b1fb44b7e ("mac80211: resume properly, add suspend/resume test") Signed-off-by: Taehee Yoo --- net/mac80211/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index a3f3e3add3c2..97eec43a6945 100644 --- a/net/mac80211/debugfs.c +++ b/net/mac80211/debugfs.c @@ -359,6 +359,7 @@ static const struct file_operations reset_ops = { .write = reset_write, .open = simple_open, .llseek = noop_llseek, + .owner = THIS_MODULE, }; #endif From patchwork Thu Oct 8 15:50:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823573 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0DC28C4363A for ; Thu, 8 Oct 2020 15:53:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B2BC120B1F for ; Thu, 8 Oct 2020 15:53:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UNE5wlzC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730062AbgJHPxN (ORCPT ); Thu, 8 Oct 2020 11:53:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731454AbgJHPxL (ORCPT ); Thu, 8 Oct 2020 11:53:11 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C896C061755; Thu, 8 Oct 2020 08:53:11 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id h2so2953281pll.11; Thu, 08 Oct 2020 08:53:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XRB/SE5ZIyzVwPq8rfA3EILsvcmS/wCMmuxLyXreGRU=; b=UNE5wlzCE6dcVmGBgbrkWNdT5/TF9pu/6adTaXuXwBcMfZAAgRbRSfc9vcrPHmrSUF 8TaLYfDVqF9gzRev11KlfaKzYMVCjiIKsBMjGUc5ENjtdPezwewtf3u15B5da4rf0ktf 6UmW11MNWwJ5N4xNoEfBRdSz8+uDP/+ilS0/APVY8r/5GyVqOMxz7FE9WZK+EgshA8QS wWWmMV06tQpyDiI/lWy18YheAXfgn76R6nH2sBHPOXGX+vyTl+11nVGaEZnkPsruRnMF T1vOYSji1MmiGFs3rCdHCnWm8JPWU5g9kqAbP3su80NbklQe7TU51ISPRU+txuM7dH5Q oSVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XRB/SE5ZIyzVwPq8rfA3EILsvcmS/wCMmuxLyXreGRU=; b=i3gcfSWQLK/0tlfAv2ZYEdL1WkUazb8JM+I3UgR8vH+HPX8E1LrYo9YRRtcM7xmcbY ZpH2lDtRzSz8WUW+iIruLg+tDEdOQ+sQJXVIVoMna8G5XTcPthMv1wC8no3SIBShyydM ++1sWbVzXvrnv+tJ+GIhHJLdSdH5hMrWf25NZ4IZYwuZaLV4fp9HNR/DJA0gjwnG9V9B FggAcKoalYScBPLNZjrlfd7p+ZV3mlS27IOTljAYSeLmBnam9FW4dtWgRZHPj2LBJIJH qhT8XlLluzVPDx+3G84Z/I0L50e1Q2cIiS3LVDYAOv5IuX9P0+1amv0koxNypjVXD8w6 p+zg== X-Gm-Message-State: AOAM5326gHJ5e7fTeAlPZ7ds0Q37t39fsm4xSlpwMmEDhtPF3QtW5s2F P5KYn8uUAAF5vIcBmXQOM98= X-Google-Smtp-Source: ABdhPJztiAcRQh7p/ClIJBuHfez2AEMMXCTsdMSMBC4Td5d7BPxH5WfMmKCJzklWQaPEOzC8h/Y5PA== X-Received: by 2002:a17:902:6a86:b029:d3:b2d4:4a6 with SMTP id n6-20020a1709026a86b02900d3b2d404a6mr7936444plk.73.1602172391044; Thu, 08 Oct 2020 08:53:11 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.53.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:53:10 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 016/117] mac80211: set DEBUGFS_DEVSTATS_FILE.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:28 +0000 Message-Id: <20201008155209.18025-16-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: e9f207f0ff90 ("[MAC80211]: Add debugfs attributes.") Signed-off-by: Taehee Yoo --- net/mac80211/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index 97eec43a6945..adde0b2797c9 100644 --- a/net/mac80211/debugfs.c +++ b/net/mac80211/debugfs.c @@ -542,6 +542,7 @@ static const struct file_operations stats_ ##name## _ops = { \ .read = stats_ ##name## _read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ }; #define DEBUGFS_STATS_ADD(name) \ From patchwork Thu Oct 8 15:50:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823579 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E29FDC4363C for ; Thu, 8 Oct 2020 15:53:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8E116206F7 for ; Thu, 8 Oct 2020 15:53:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="plSBdPyX" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731481AbgJHPxV (ORCPT ); Thu, 8 Oct 2020 11:53:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731454AbgJHPxO (ORCPT ); Thu, 8 Oct 2020 11:53:14 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9DD6C061755; Thu, 8 Oct 2020 08:53:14 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id o9so2947771plx.10; Thu, 08 Oct 2020 08:53:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0GBIGnkeb8hxg4Z2SyWOu9N3DUwNWWvvWeAFenzOnsw=; b=plSBdPyXyaCzHG9iyMo/N8xqmAVVxcdpYPd6goD+zGqKcylDfeb6Zk0qhUrKEzR85/ hGRaHdVVqK3EmCvSZxkdGvlGS8KFApKsSoQBh+DJRJEFPPwS2apccjFq8VROo/PyrY9G 6UHoSQH2xby/Jj2DtbFDYBoLg8ol8fDu/KUp8sF5WyRbTEKOVBasJizuT/LTCOXLllOx RsmHprOa/u1JJ3eOPWav+dU9A74u5jbb1lJGzCes1/rBG8p1wZekEJl19AFzs1rfu+1C atIJjKBUB59FfI7HTX5MV6yvKIfrraz5pMBoVvP7jWHUnOFJn/1UTzEZdh+fIi7DmtL1 uU9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0GBIGnkeb8hxg4Z2SyWOu9N3DUwNWWvvWeAFenzOnsw=; b=d01ZAvWDY2TADkYp7hC7t4yAcbJsaNIlibZZRUncKhDcvHdrIwuQqKYybvZAAXIHam NnSef9Fwt9itjQiSgL4mU75a2gweoDUlOh+0vxyegkMauEbOGFjEy+x4uLHUE93F+My+ CHJRVp2Fzb1ntbl4PDsWK0z5XuOxa8ED/mTg3AC+5ZKL4oWFnGomaqmbOLK/TTN67Dj4 JOD5VoVTxaZJ4IaS9mRF4YcCRNwMikGPbrsdSV44SWF/GJx410cxYx5CHUMXWrwBl0Cg 3qLly2DCSDuDDgVSvzpvTGdfSYoSl8qafPLW1T1lHR9V05V5ZQx84URdI3iyZKlJe4vJ NKrQ== X-Gm-Message-State: AOAM532ldRDp9NHDuywTyn3YNXUIkIbhnaSzfZF4bhtu8uk0BrcpjbDI zq8hZeFR1kozplhpI+XRJccjwpM62so= X-Google-Smtp-Source: ABdhPJyX6CdpCYL607GjhwX/nJhpiHHAfe+XcFzMjFPsuQtLMzofh1BoUFNP+r7ECq/9jWneD7xN4Q== X-Received: by 2002:a17:902:b592:b029:d3:8dc4:391e with SMTP id a18-20020a170902b592b02900d38dc4391emr8453849pls.76.1602172394388; Thu, 08 Oct 2020 08:53:14 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.53.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:53:13 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 017/117] mac80211/cfg80211: set DEBUGFS_READONLY_FILE.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:29 +0000 Message-Id: <20201008155209.18025-17-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 1ac61302dcd1 ("mac80211/cfg80211: move wiphy specific debugfs entries to cfg80211") Signed-off-by: Taehee Yoo --- net/wireless/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/wireless/debugfs.c b/net/wireless/debugfs.c index 76b845f68ac8..a00ebcc552e9 100644 --- a/net/wireless/debugfs.c +++ b/net/wireless/debugfs.c @@ -26,6 +26,7 @@ static const struct file_operations name## _ops = { \ .read = name## _read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ } DEBUGFS_READONLY_FILE(rts_threshold, 20, "%d", From patchwork Thu Oct 8 15:50:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823583 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7DEDCC4363A for ; Thu, 8 Oct 2020 15:53:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 244C0215A4 for ; Thu, 8 Oct 2020 15:53:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="vSlQuBMr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731449AbgJHPx0 (ORCPT ); Thu, 8 Oct 2020 11:53:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729756AbgJHPxT (ORCPT ); Thu, 8 Oct 2020 11:53:19 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05EE9C0613D2; Thu, 8 Oct 2020 08:53:18 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id i2so4648038pgh.7; Thu, 08 Oct 2020 08:53:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EcDa6KOGsJCcoaPe10DT4p+FUs9itSeI4GGoEuDHSo4=; b=vSlQuBMrdZDas4CqBHX5YrI6hk23cxNw/suOKDH/j1jAufFxyK00YLovFC5AxSfL/q lT4QiPz2cfYNp98rbpJgbgzLsmjW+BLPGyfw8RA31sRyexT1fb+1ZXlqzzroO7pq0jle dSuwuTqfF8KOSw8NQiCwxkOy7IlihJ87rinfXKue9pYO99ZHP1VD4q1DMkb3cgn1tHOp 4pYOKdjuTksbDmxtFwTh0SE5Rhb6o9IXpizTolA/ZmajJWOH1hgNOHiUd7C3yZ3GrXCD YCbkbYX7kmm0s3DEL92J9/F893LC/XLzB2roMbaNjAFTJwk1Rlff7Hsz1qMNDI8vU0e3 WaCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EcDa6KOGsJCcoaPe10DT4p+FUs9itSeI4GGoEuDHSo4=; b=t0TLSHGLXKkTh7R7wuiimQ8id3eZFmqElxrARdKMZNZDQBtND5yvu5UsvGEDgGcat1 YgXNpil7q03Tlov1GvTm3knF50k1gvXC2/BfPYldj534LLPKw+fpyqf1PEXWDUENg+T8 IWDaZZE1Ks3knyYCpg6LO8jkaFKiroA7H2IU1C6swlJAj4rqdD/xA0yQv0jfsSlQZW5i R2omrQ0zpRLwM6azxPFtoVjplyCxFRb+1PuewifQIw/5JkxJhR9p0a3OWzSLK7CklLA7 GQSqKBvlTpNogAV6bZbHdemVwAUsEUYUyscFCtZzRMcL+akyHjufgdquAtA5NahjjA0c Gt/A== X-Gm-Message-State: AOAM531vDTRVr0dguySAzqj6/k1e2Fcs/Lv5s4Yy+ZyobMc8WHpJOUQ2 OLwobCzrKP1PDsBoV9oYxcE= X-Google-Smtp-Source: ABdhPJyFtmD+VtMyQxUAl0wtRtQH624pHEYgAd0m2vp2/wS7XULTAfcRJCrLcMozlCUj3wYNxqp+cw== X-Received: by 2002:a17:90a:aa90:: with SMTP id l16mr8918851pjq.0.1602172397553; Thu, 08 Oct 2020 08:53:17 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.53.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:53:16 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 018/117] cfg80211: set ht40allow_map_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:30 +0000 Message-Id: <20201008155209.18025-18-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 80a3511d70e8 ("cfg80211: add debugfs HT40 allow map") Signed-off-by: Taehee Yoo --- net/wireless/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/wireless/debugfs.c b/net/wireless/debugfs.c index a00ebcc552e9..eb54c0ac4728 100644 --- a/net/wireless/debugfs.c +++ b/net/wireless/debugfs.c @@ -98,6 +98,7 @@ static const struct file_operations ht40allow_map_ops = { .read = ht40allow_map_read, .open = simple_open, .llseek = default_llseek, + .owner = THIS_MODULE, }; #define DEBUGFS_ADD(name) \ From patchwork Thu Oct 8 15:50:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823587 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5AC91C4363C for ; Thu, 8 Oct 2020 15:53:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EB932215A4 for ; Thu, 8 Oct 2020 15:53:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Kds+YHip" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731519AbgJHPxf (ORCPT ); Thu, 8 Oct 2020 11:53:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730261AbgJHPxW (ORCPT ); Thu, 8 Oct 2020 11:53:22 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 223CBC061755; Thu, 8 Oct 2020 08:53:21 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id x5so2968421plo.6; Thu, 08 Oct 2020 08:53:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pUO0uGciYf9B2jjWdxKLGn4NNP/NOVzDPvkzC3p9CpU=; b=Kds+YHipmnCERQ0LB9Ergr3psOKKnJgAoLOQczggjKfQNZkjiryZH1p19hSjGGgk29 czCXeRAdWNQ7OctT76/Nwk/Xd5D7/YjT0HzffA78O3orknhAFIdqOEwLhfxMbLpk0zN/ dqx67AZJwVmFrcFZmckLmcs+WYfR+cHurPB0lDWFqFWuvT+3YkYC+0K3uUH9JP9VODNn cPhNq9eXoewGNFYzzwEQv3NF7klgg1Ur5mxMVU+caFFCOu0jpv3IeZBN8fVTRiUBa1DJ m2wvqtSOVgTIvx+gU2zEYHteoeb9DdDJ1sIRNUqmUVj9KT3d/pwBigLQHO4azPeozgjE huTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=pUO0uGciYf9B2jjWdxKLGn4NNP/NOVzDPvkzC3p9CpU=; b=pn1soUv8ZLuOAPxZMomIkIHNxaad0LxNoyA8j0R1WUJqT3KNbbNEZZqcuXDX9Jg1tJ ce55HaLFA54ZpV50NCfuL/+BAfEZb8gp6T1vnKWK8qQk1dbUiPSeb6Cgt8GquYo8kI8P 721jTdYDgKQQXkls4Avq001pexSwVZZJISgrZqWAp8j/F9yOR/nQF84bxA7jyXWS3mjR HqX8A1INBWrH8zyrU4Vcf+XFN+exaF5UBA7RUz7Rao1dV8CyFb4f+Ospvx7F7EvLjhqk 76YJuroQlElOhwn79IB+H+74C3FWtIhE5Mn8euu11saCKxCve1oTnFiF5iku/dfxbX+u Hq9Q== X-Gm-Message-State: AOAM533QbWu+/4H2DLSaeihN9BEeFApn1yfTB0wR7kybQkmfgqFar/HL zbNly3FIQFOmErAIV1oZsXE= X-Google-Smtp-Source: ABdhPJzmyrBqmPMopKDPAkdOBFpCRw1w6CTro5OX3uSdy9oZAToSwaPyaeRbgSEJiRIm2iGBWGUzJg== X-Received: by 2002:a17:902:7fc9:b029:d3:effa:7162 with SMTP id t9-20020a1709027fc9b02900d3effa7162mr8208091plb.69.1602172400676; Thu, 08 Oct 2020 08:53:20 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.53.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:53:19 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 019/117] net: hsr: set hsr_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:31 +0000 Message-Id: <20201008155209.18025-19-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: fc4ecaeebd26 ("net: hsr: add debugfs support for display node list") Signed-off-by: Taehee Yoo --- net/hsr/hsr_debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/hsr/hsr_debugfs.c b/net/hsr/hsr_debugfs.c index 7e11a6c35bc3..92ebb5ff41e4 100644 --- a/net/hsr/hsr_debugfs.c +++ b/net/hsr/hsr_debugfs.c @@ -90,6 +90,7 @@ static const struct file_operations hsr_fops = { .read = seq_read, .llseek = seq_lseek, .release = single_release, + .owner = THIS_MODULE, }; /* hsr_debugfs_init - create hsr node_table file for dumping From patchwork Thu Oct 8 15:50:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823585 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7EB48C4363C for ; Thu, 8 Oct 2020 15:53:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2D0AE217BA for ; Thu, 8 Oct 2020 15:53:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WY+vXONk" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731510AbgJHPxe (ORCPT ); Thu, 8 Oct 2020 11:53:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730397AbgJHPxY (ORCPT ); Thu, 8 Oct 2020 11:53:24 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26A76C0613D3; Thu, 8 Oct 2020 08:53:24 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id y14so4625770pgf.12; Thu, 08 Oct 2020 08:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Nizx9awJc0GxmiEBN3pjjPgXJluDxmsFWKBl+4zUxKs=; b=WY+vXONkEL0vJJAYDkKo4xVi1cdhMlVVMh0xIE77/EcCLsu+gGi++h6z7NtsqOPpkq dLLCDmvXVKBQMKaqxerKL1ql5s5WHABr59Nd66K5H5y3GbcISW/++zCNO6p0nFpRJOza Hi/phhr0buSgmJFvFjFitLFyVFjqSp0XdL6wXhsV117MUsd3B99UMLvNzBzG3oYdivMX QpAQt28RosXTP/oTm9juROmtgakaSdrHgZpuiWAcfLWkRLaeV7MDPlUNZBjKukEc2ApP znOM5Qod/tYl1gQb0A/FDEY6XXzxi/f/Rd+2gZI8efx7BvXlgp7Akvh3oIMH5f+bG5aA GG1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Nizx9awJc0GxmiEBN3pjjPgXJluDxmsFWKBl+4zUxKs=; b=L/1+uGSFMIsRq7jAvp9EI/gErn+x0JUoAGoI1babAlUc278nHbwCt3bB6KgBM+k4bp FHqwBbFTpAt6aLjMKFNoIh4hUFYOk+M1tzrBuFVrzFfY6WQ4ykwXOKMVTaUaRBeGXRie sngP41ExboW/mkPdnBjNpku1ztKXztNzHY4uMrOX9bntOZ/bBslqV+x/u+u/qFhWYj/b 0GeklmcEUJaD1CKORTuvD3KcyBHM17bvrpOrRKj7W/I72s/aGcD8sVIRbiKhEu5VW9iG 0dpAfM8kQ0vlbjcp99TDY1lPVtCNcI2I6/eABXGxDotmXweQM4QMdZhhqlOmggUhXTxq vZOg== X-Gm-Message-State: AOAM5307hS0L/XjNyynr+vRQ0C9xOYsIEFvXlQLzCiPkrukO1qpxCxJE NQv1U5JcwJloNctyDqZgLX+hDUNNhBA= X-Google-Smtp-Source: ABdhPJx5Dxv6ApPs/7jnOjka/Jf0vEh2yTgWBHtZBBnFAl/lRPLw82MjRX+nNhJiWZfoduHgGBrZyQ== X-Received: by 2002:a65:5b48:: with SMTP id y8mr7694395pgr.67.1602172403731; Thu, 08 Oct 2020 08:53:23 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.53.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:53:22 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 020/117] batman-adv: set batadv_log_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:32 +0000 Message-Id: <20201008155209.18025-20-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 9e466250ede3 ("batman-adv: Prefix bat_debugfs local static functions with batadv_") Signed-off-by: Taehee Yoo --- net/batman-adv/log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/batman-adv/log.c b/net/batman-adv/log.c index a67b2b091447..5f887bca2549 100644 --- a/net/batman-adv/log.c +++ b/net/batman-adv/log.c @@ -180,6 +180,7 @@ static const struct file_operations batadv_log_fops = { .read = batadv_log_read, .poll = batadv_log_poll, .llseek = no_llseek, + .owner = THIS_MODULE, }; /** From patchwork Thu Oct 8 15:50:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823603 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73EEEC4363A for ; Thu, 8 Oct 2020 15:54:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 176DB206F7 for ; Thu, 8 Oct 2020 15:54:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TIuCrZSy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731570AbgJHPyB (ORCPT ); Thu, 8 Oct 2020 11:54:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729756AbgJHPx1 (ORCPT ); Thu, 8 Oct 2020 11:53:27 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35D2FC061755; Thu, 8 Oct 2020 08:53:27 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id m15so2959821pls.8; Thu, 08 Oct 2020 08:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DFiII6K/5zzohX7htLZ/WMzaT9KKafZRq9CyEt/q/uk=; b=TIuCrZSyTzqaCTwFEJWGoeASTgjCQsgEIDnIdDDzAgO+8w49Qun4sWOIU0auzIRlZH 6M7a0uRZpAJXJYHrukv073aGIIhDc+Q51u3L7nx9QN2NsUZvcDFEeymCdIbaTQ3jn4op hyELTdGPL+LTU24J8R4PZMzdQB3F4HquLJpj4zEr5M/7J6079qPEkYWZGamUyelr4yu6 vWj7Bged37xn+doD71RjMTt/LgygpYnXgCVlwOsNBVpU9l/ybQBPSAVER9aOmem+sbWO 7vIlGQtosiOVxOk4MEhf6LIfPuD7bMgv81OANy2LqsLPPwfjzP9IcfKhSlbI5s1TXlsg rA9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DFiII6K/5zzohX7htLZ/WMzaT9KKafZRq9CyEt/q/uk=; b=WpXd0fkKAGGNO4vXkTNwr7VMUb05m7a6/IizmTjKYfleA+0bjzqleGpRfSP0ZLrGkx ex7SORuTobMNtUFAIxvFiYZorjR35gW34pwgwUT4JihWhjfw6AKcjSONamKOmAIf1MRl GDWmXYZ5j1+3KSFrNCqgqKH90piVtWPLHGYFTuNvK58vx0re0H8wUEAr2fijyZimBA6M 6oJrzUGqnl4mvG78pVgXHpPxaBFamDEH6utpMQL7xM+vMP3NykGoGfK13FMBV4XlN9L2 b4aYx1YO0T1V/hAgWH/cTWo+qMC/Go0kIrjzW44W+9Y08mqtsUoPe2SdXt1lZkCTZme0 NC0A== X-Gm-Message-State: AOAM532xYVcWldBOcviISFblyWAuxBu4Sc0H7dH3hb9w/lc6QJM70Tzp DfYrXFnTGXYsWD5g5SfHfgs= X-Google-Smtp-Source: ABdhPJzUwB8RERt6vcR9D0FtQY9efGeGWzI31hEgPHo+6w8cp9I8etdxoc+Lz4A1OVvuGfu5oTBNfw== X-Received: by 2002:a17:902:8215:b029:d3:8afd:522e with SMTP id x21-20020a1709028215b02900d38afd522emr8243747pln.47.1602172406762; Thu, 08 Oct 2020 08:53:26 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.53.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:53:26 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 021/117] 6lowpan: iphc: set lowpan_ctx_pfx_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:33 +0000 Message-Id: <20201008155209.18025-21-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 5609c185f24d ("6lowpan: iphc: add support for stateful compression") Signed-off-by: Taehee Yoo --- net/6lowpan/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/6lowpan/debugfs.c b/net/6lowpan/debugfs.c index 1c140af06d52..29c3627a00e2 100644 --- a/net/6lowpan/debugfs.c +++ b/net/6lowpan/debugfs.c @@ -161,6 +161,7 @@ static const struct file_operations lowpan_ctx_pfx_fops = { .write = lowpan_ctx_pfx_write, .llseek = seq_lseek, .release = single_release, + .owner = THIS_MODULE, }; static void lowpan_dev_debugfs_ctx_init(struct net_device *dev, From patchwork Thu Oct 8 15:50:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823601 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23762C4363A for ; Thu, 8 Oct 2020 15:53:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CBB3B206F7 for ; Thu, 8 Oct 2020 15:53:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="s9EujuSg" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731563AbgJHPxy (ORCPT ); Thu, 8 Oct 2020 11:53:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729910AbgJHPxa (ORCPT ); Thu, 8 Oct 2020 11:53:30 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FF07C0613D2; Thu, 8 Oct 2020 08:53:30 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id b19so2973288pld.0; Thu, 08 Oct 2020 08:53:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sZD830WHPuHbWWSqWkAn8vXoLem9X7DQltwScbkN0g0=; b=s9EujuSgH4IE+Re//qCrxk4wi2YWXpnTqx7MOGcyyMMSN+2BuBpxJTLCSbTKySzyt2 xLn+2hnv5oYX+mb1fzoynU/8qV8PggGonnE4pfZQOR3gb+7B1blf7BMUub3Zx4HaQqoB 9cTWJcIcuzEEbk5GEvCmYk9qKFjP+T2FATeq+h+Ffx7xZBR/NCR0R2whrMts2BA81zSJ BP8k66VzhnDpk/is2uBm+vmVbOHkJz7+8VA1IuwlRZ0KT9gnJiCHSGsNFhHbLCX/nbZX z0kFIssYEV1AE1vCOBkHN4ekfr5mUD0CxCIU5b99ZkzG2tGFEhDzOIDIBKQdNdDWvT8U F8RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=sZD830WHPuHbWWSqWkAn8vXoLem9X7DQltwScbkN0g0=; b=gcmHL42q1qUBTKoPRW7PIuPIncEDyB2Lnr87Smdzslre7HphV7Orm2e/jzN7XibgxB XcYeMDCZfzNUNV+KPstzxOTHyaYGECtHm6gop0rjBbsY6MMD+EoCuSD7cL0FP8sKcEfa HrmngVoHstoaSF4WkyUAWcGI98xNX0PEKrXUW1LuxNmt7Bd2Z888g9D7QXdfZk72wvJ2 h3jIwBP61HwlxuEcv+kK51GK3AvA+dCcFlLUUdCwnCrpOqBofiWiB4VneJCqDuxGDEZI We+mwe+kryHCkILehxI/3Vy2WQWcHJ2+8MkdLhS+wzje9VWvmmSlOG6Qf9jFAjDu0+1x 2U9A== X-Gm-Message-State: AOAM5339/RcHqBzRN+IFw7aYRdTt2mXo1U+BNrh2X3wVihjHlFldkQin taXZW8lXw0kd5e4FuGszAQGV83xCF64= X-Google-Smtp-Source: ABdhPJz0mA/WEhV/mD2IFjcyfoUmRc2WZYl1/CLq0hCJNxeOY2l+sg6vG9U5EcxOZi8avjSTItWPKw== X-Received: by 2002:a17:902:8c8b:b029:d2:6356:8b43 with SMTP id t11-20020a1709028c8bb02900d263568b43mr8190362plo.34.1602172409811; Thu, 08 Oct 2020 08:53:29 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.53.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:53:29 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 022/117] netdevsim: set nsim_dev_health_break_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:34 +0000 Message-Id: <20201008155209.18025-22-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 82c93a87bf8b ("netdevsim: implement couple of testing devlink health reporters") Signed-off-by: Taehee Yoo --- drivers/net/netdevsim/health.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/netdevsim/health.c b/drivers/net/netdevsim/health.c index 62958b238d50..21e2974660e7 100644 --- a/drivers/net/netdevsim/health.c +++ b/drivers/net/netdevsim/health.c @@ -261,6 +261,7 @@ static const struct file_operations nsim_dev_health_break_fops = { .open = simple_open, .write = nsim_dev_health_break_write, .llseek = generic_file_llseek, + .owner = THIS_MODULE, }; int nsim_dev_health_init(struct nsim_dev *nsim_dev, struct devlink *devlink) From patchwork Thu Oct 8 15:50:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823589 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4435FC4363A for ; Thu, 8 Oct 2020 15:53:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D9286215A4 for ; Thu, 8 Oct 2020 15:53:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nJTcwzqK" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731524AbgJHPxh (ORCPT ); Thu, 8 Oct 2020 11:53:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731507AbgJHPxd (ORCPT ); Thu, 8 Oct 2020 11:53:33 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40132C061755; Thu, 8 Oct 2020 08:53:33 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id y14so4626147pgf.12; Thu, 08 Oct 2020 08:53:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mmvCzbbj3ToRI3pSoyPBiaY4so5rk1xRmVzeycxsTt4=; b=nJTcwzqKjPHT8EOdYap9MYAOyauIWk2p8EVmJWhkj6iGNnitv8oCBvnS80Avz4R4EJ 7Zp9C/TSi9JVo2E4JtNeBI30OO6L6rI05m8KjU2xpIzZPmgFQQRi8p9rcPxGO5fHzUSk DS7H59/yLjUUE/+86wyoK+y1KuswHcjZBuVD1n7mesUaWxpFjhoSBymLbKCbKzkK6d8Z dsagoIbezMCMeyWIkbitsqcNENjXvWYX139kHYel1hYG56IOuJtQgtrwidUwVjvVdhqo ROd+cKNZdz5+Cj3yvj63zUTMRNrpHdPbgJ458Y2+hh8z5oKfJy1VUAlopCnM1sU3t5Vi X0cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mmvCzbbj3ToRI3pSoyPBiaY4so5rk1xRmVzeycxsTt4=; b=t0Cd0tOSLVljKQM17kyZinuHo+qcB2zh60TNWIcr7gpb5xMewRFyD9F6EbbsXgyQgZ 3POyIAL0j0Aaa+j5Z9HVfM3OvzTijSWWVtosMbsq2tQddMiH2auIWSWrksXlrXytWm2i FeJlcQ7ISaLInB1rWzLrpWH9XXxnSmo8Wflr29osJlXVt2DPRPA00OHdxZDdzhNxk2DS O4BlGR6HF3M0VDLWVKdumottzfAUvlz/q+kTu2PwR3Zrl4CMn044aN/4tQgpoDbLLQUu kXhrucBsRQIj5UxqhJOWMhHaSQ+VcTr3P1O/lVNOGxbWQ3vI9tan7INynrCUSPpxbaEt yCCw== X-Gm-Message-State: AOAM532F0qdLD8bjAjMWgpWwKh50z9eEv0HtoUev+GNbyWDk6LpJ05Qq NVP0NmrlUes2Dd96lEVL1ynYNAsT5jk= X-Google-Smtp-Source: ABdhPJynJM22ztW5ocmwcbe994yqqIqvamTFbMjrnbocyhm/n4dIfO8Kd9neDxME0GjNaWeTUmsSBQ== X-Received: by 2002:a17:90a:1704:: with SMTP id z4mr8753175pjd.7.1602172412849; Thu, 08 Oct 2020 08:53:32 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.53.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:53:32 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 023/117] netdevsim: set nsim_udp_tunnels_info_reset_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:35 +0000 Message-Id: <20201008155209.18025-23-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 424be63ad831 ("netdevsim: add UDP tunnel port offload support") Signed-off-by: Taehee Yoo --- drivers/net/netdevsim/udp_tunnels.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/netdevsim/udp_tunnels.c b/drivers/net/netdevsim/udp_tunnels.c index 22c06a76033c..2482b0f80b2f 100644 --- a/drivers/net/netdevsim/udp_tunnels.c +++ b/drivers/net/netdevsim/udp_tunnels.c @@ -119,6 +119,7 @@ static const struct file_operations nsim_udp_tunnels_info_reset_fops = { .open = simple_open, .write = nsim_udp_tunnels_info_reset_write, .llseek = generic_file_llseek, + .owner = THIS_MODULE, }; int nsim_udp_tunnels_info_create(struct nsim_dev *nsim_dev, From patchwork Thu Oct 8 15:50:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823597 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01D78C46466 for ; Thu, 8 Oct 2020 15:53:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A3C0D21974 for ; Thu, 8 Oct 2020 15:53:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="l3uxU4v8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731542AbgJHPxo (ORCPT ); Thu, 8 Oct 2020 11:53:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731520AbgJHPxg (ORCPT ); Thu, 8 Oct 2020 11:53:36 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5079DC061755; Thu, 8 Oct 2020 08:53:36 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id y14so4315389pfp.13; Thu, 08 Oct 2020 08:53:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=p5IvPVKBTU7Ycj9qQJiUspy71ULY4yDvauv4FygkH+k=; b=l3uxU4v8E3W1qGadCt6P0zJch5KFrcpSspoQ4UqZpAbx+3FaTZbvYjSxnB+RgMizPe ubdewtVo0ihY9ELoVg0DQ8pP/yuUfd2sO8wnXw9AgoxGT8u//VR6UlQmkaIGnilZR76x 6A0MCXdK/v28phPv21XePV6ucG+ltH6Js71ul3n56droVa42mfAB2Zch4LEoMTyMESUa m0JRjfQNDH45PC8VPeLzToXo+kq9jEJPljp9sk8TPQ7vNblU0rk0aK0k79BPwtK3KJw1 4s9O7k3+c5Xl8W8pREKn17oQH6/lX5/r6RfeiJY+rrFDN9tqrb06yE2r38I6Y2ytH/gt 6MOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=p5IvPVKBTU7Ycj9qQJiUspy71ULY4yDvauv4FygkH+k=; b=czjNR95yvwflW/4EdQ5Rgl8ujoDiVqMx7sGzNi+QGgCYEJXzeoS5xEaRSBQalXkNXQ DRwxoF6izTTXozMC6Bd5BuP3HS+kAR1xAiMd2x6ygXkOW628GHmWg4cPxRoKSxMFM6Pk S5R1WeQZB8agzj6G41Fix/3khXlj190410eLzrLe80FvqZtmZF+yilEU/ArSHnIB0nKk 2BjycmvPRcPNv9Y4fszhi+FsRczn+3PlbAEkbAyQRZmeNrUzuA4ouB5Gy7oDkwiYNz75 yQ68ONbkU4OagcDiJiR51NSD8kUfE2pMG7bBpcEbW1zbsuv7yDTGfasG2e9z3bAgZLW6 T6dw== X-Gm-Message-State: AOAM530OvR1Ew9760f5v+Al8BgUIJ/2sswjHJlc7EM+2W6vdlsa3pzZS xe/q+piuL1qRXiuYg9rPJH6CvX16Q8I= X-Google-Smtp-Source: ABdhPJzDbaVD8e6aeknwdzVm9lGUKksdwX2pU96DAebWu5oavOuENRi0mED+cKac1DOONOlyK+LqPw== X-Received: by 2002:a63:4c43:: with SMTP id m3mr7768488pgl.19.1602172415903; Thu, 08 Oct 2020 08:53:35 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.53.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:53:35 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 024/117] netdevsim: set nsim_dev_take_snapshot_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:36 +0000 Message-Id: <20201008155209.18025-24-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 4418f862d675 ("netdevsim: implement support for devlink region and snapshots") Signed-off-by: Taehee Yoo --- drivers/net/netdevsim/dev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/netdevsim/dev.c b/drivers/net/netdevsim/dev.c index 32f339fedb21..9c867d08e04a 100644 --- a/drivers/net/netdevsim/dev.c +++ b/drivers/net/netdevsim/dev.c @@ -94,6 +94,7 @@ static const struct file_operations nsim_dev_take_snapshot_fops = { .open = simple_open, .write = nsim_dev_take_snapshot_write, .llseek = generic_file_llseek, + .owner = THIS_MODULE, }; static ssize_t nsim_dev_trap_fa_cookie_read(struct file *file, From patchwork Thu Oct 8 15:50:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823593 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4FD2CC4363C for ; Thu, 8 Oct 2020 15:53:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E34F1206F7 for ; Thu, 8 Oct 2020 15:53:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="scKlVHPa" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731536AbgJHPxm (ORCPT ); Thu, 8 Oct 2020 11:53:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731507AbgJHPxj (ORCPT ); Thu, 8 Oct 2020 11:53:39 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8465DC0613D2; Thu, 8 Oct 2020 08:53:39 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id n14so4335060pff.6; Thu, 08 Oct 2020 08:53:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gaL//GthQ5zy0g5RXcHR8ALlsqiA25WTt3ZIyvHxpwo=; b=scKlVHPaAtCAvoYmDS6YnwBZAG8gz9G9kO705o9tJSSmrELqlyD+a2oB7GSkCaMYPB 7yztrm83ZtCloN65wG6TRxCWLYno5mAY/l4wSyQaz/u/5Z6P33luarnKEkZ2HfkZxWlp Oz+xST25XJiBzUk4uyCmuviWdjrRD+WPHuCZbxvDnNeBXX63RyTz8RWKhy1pdfbKB0nV M0oiLdyIHAy26CIv2aSFakHCZdBkTS403o/HN1p8LFlHH1RhW6GQZaUJwoRnGZXVuGby 4kVZ/yknK68Yjgl8KqcDsF86pvmvJ4GHiBGXAB0pPY0gm3/EIsQuksQYrCWl+7brmx1C dogQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gaL//GthQ5zy0g5RXcHR8ALlsqiA25WTt3ZIyvHxpwo=; b=rtLBfmANyQNNVZwsDAfpYH459E0XginmjBlv4NaYHkoSqngRs4ancVNkda4fNk1okf xXPnEGJJVK1WB0lbojIyBnftgD2cuybQwwAZVcvCtQ/1t0s14/FGjZxAnc0GQh/VhxDA kO4EHSFM3dEdei/7eaGUHZsAkBHCZO8KWtkCNAeqJWWOIiSDoQhD7CYSw7z0p9aLNB/7 zLdL/hEVSZm3pU5Yg/1lUPQND55ocpuCRm3dxPKwezDCHsrfVpecAUk3Q7ZlncFSRltT 6KPrIkjy6vweKhD5FCW5e8qeeXnvIOZv0sQbImL/FN+9qRg9jjMxRGyV9A0M8FKGWbix X6EQ== X-Gm-Message-State: AOAM533bIRbFpnuCtirFGWvTefi2mXlol1e8SFSK95KciLzih43p6Cko zLf4gnm/7PKL2MwVGN1RWyY= X-Google-Smtp-Source: ABdhPJy9X9bCuhbzImVr8xR5hIegq2IGKc/i/oy8g/UrTFm8PoehRDBlH1poHPvtenYlczdPlrhrRw== X-Received: by 2002:a63:e804:: with SMTP id s4mr7652141pgh.165.1602172419073; Thu, 08 Oct 2020 08:53:39 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.53.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:53:38 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 025/117] netdevsim: set nsim_dev_trap_fa_cookie_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:37 +0000 Message-Id: <20201008155209.18025-25-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: d3cbb907ae57 ("netdevsim: add ACL trap reporting cookie as a metadata") Signed-off-by: Taehee Yoo --- drivers/net/netdevsim/dev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/netdevsim/dev.c b/drivers/net/netdevsim/dev.c index 9c867d08e04a..1ae83ea4adbe 100644 --- a/drivers/net/netdevsim/dev.c +++ b/drivers/net/netdevsim/dev.c @@ -187,6 +187,7 @@ static const struct file_operations nsim_dev_trap_fa_cookie_fops = { .read = nsim_dev_trap_fa_cookie_read, .write = nsim_dev_trap_fa_cookie_write, .llseek = generic_file_llseek, + .owner = THIS_MODULE, }; static int nsim_dev_debugfs_init(struct nsim_dev *nsim_dev) From patchwork Thu Oct 8 15:50:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823595 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D92E7C4363C for ; Thu, 8 Oct 2020 15:53:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8370B215A4 for ; Thu, 8 Oct 2020 15:53:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gU1jKUlO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731553AbgJHPxr (ORCPT ); Thu, 8 Oct 2020 11:53:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731539AbgJHPxn (ORCPT ); Thu, 8 Oct 2020 11:53:43 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E1C5C061755; Thu, 8 Oct 2020 08:53:42 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id y20so2946506pll.12; Thu, 08 Oct 2020 08:53:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PT+2dTQKPMAMm7soeIkw9GAbj1teON7hA2mLpYNf8Q0=; b=gU1jKUlOFB84z6apiwrq7P7F1Mps2iG23daSKL225Kty+XV8LoGMnmN8KC/LnZ4mzz TMfXTXhxiw3i7fbAHWR4gsUWgmykcJzbOHqhM34u5++YAuFJ5Yg9w6vapiboK2ci3Gmq esegYPt77yd68yHDcpszlAkfbcXrBAgl8M6lf66tnZjqUr/P1pu2ZEhZPWuxAOHaqj5G p0U+GszSCRZrzjjVPyuX0ZXP++YSkvhLtMJabxS9fM078j4YMGXkuhqtZEHIUTSOK9M6 0GjBMj1IjZADPx6fVujPuZ/TpARtgGHIbMQabniD93+avHKO0QWcrEGxO9wb/GoPahRA J5Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PT+2dTQKPMAMm7soeIkw9GAbj1teON7hA2mLpYNf8Q0=; b=eFfksudojaFNUmllcvEDWmktmdLs6sB/K7XR5mLNK4iaOUMWdmO0xPwDvi/RTWVlU4 PLDo5G3ujfOlEGdcyQO/ki8GscqTalFIYTicbWG8JVwmX+yGffiw5U5o3eQF66CpKZET KhSHpFQIFAsa1o53CQ5VJqWT+PQwfKC8Cs/ENR6nLRxE7spJbVtwGWuY59X3riIQPkeW LNq9W8zR362+G+91/5/CeW7KWvV8L7O1gADDmWarYbiTlWkcS3UXbSZ+dWCuyETRfo9h pI5B5eXYuuuz37xCeE0m0I79xn5H1xuDADnRzf/5Fp17Zj8MsynBRoNQ6KtXLt7U8Bfe Bfnw== X-Gm-Message-State: AOAM532SmntY/8iFtUNpnwz9gpquf1oLfDEyrzntmrHY4uS+cYWFymtN zLigeyaOQ6WMcj/NPCzUO54= X-Google-Smtp-Source: ABdhPJw1MoEZwrIFqxFHIWA6nBXAdhnsMdvbNpSvHPijD3oKblKJUXU3Quh/Pj0YijC3zWxlz7bE1A== X-Received: by 2002:a17:902:c143:b029:d3:f20c:ed84 with SMTP id 3-20020a170902c143b02900d3f20ced84mr7979028plj.76.1602172422120; Thu, 08 Oct 2020 08:53:42 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.53.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:53:41 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 026/117] ieee802154: set test_int_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:38 +0000 Message-Id: <20201008155209.18025-26-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: ded845a781a5 ("ieee802154: Add CA8210 IEEE 802.15.4 device driver") Signed-off-by: Taehee Yoo --- drivers/net/ieee802154/ca8210.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ieee802154/ca8210.c b/drivers/net/ieee802154/ca8210.c index 4eb64709d44c..d7b68c1279e6 100644 --- a/drivers/net/ieee802154/ca8210.c +++ b/drivers/net/ieee802154/ca8210.c @@ -2672,7 +2672,8 @@ static const struct file_operations test_int_fops = { .open = ca8210_test_int_open, .release = NULL, .unlocked_ioctl = ca8210_test_int_ioctl, - .poll = ca8210_test_int_poll + .poll = ca8210_test_int_poll, + .owner = THIS_MODULE, }; /* Init/Deinit */ From patchwork Thu Oct 8 15:50:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824151 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79F78C433E7 for ; Thu, 8 Oct 2020 16:00:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 23E4E20B1F for ; Thu, 8 Oct 2020 16:00:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cRpIjyrU" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732093AbgJHQAx (ORCPT ); Thu, 8 Oct 2020 12:00:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731552AbgJHPxr (ORCPT ); Thu, 8 Oct 2020 11:53:47 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4455C061755; Thu, 8 Oct 2020 08:53:45 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id t18so2972407plo.1; Thu, 08 Oct 2020 08:53:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mpqItggcpYz/LrcOXwKl2QwcGIxlW/MlJ/nYtcRg6DQ=; b=cRpIjyrU7p3ezNM1NDiDQ/+mcYw3tl4umm8u/tnOBrYymfaXjNgdL53DG1xTyTsjp8 Uv5jXsVJbifn1TTur5jta71WFhP3akXDiOpleFKa1VMvXTEdOvAswHivlEldhamHQ3H1 u634zBREYerUDzz63649EeHdCWgW1VKGMUv2tcw9vmkB187Mv3amzy3ZLhOJkXzuqyXO 81RUryRhdzjgWwz1y+gCE0dpbI84pwbao2zMuo8kBVaB+ELfg3lJ5PRT88N19ozHspEq eYSeMZdIJf0ZN/L2FTAi3E5B2mX6mxJNH3JQvM91zToHe/VcR1fxsvDeTsSLMQxAPb/S dCnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mpqItggcpYz/LrcOXwKl2QwcGIxlW/MlJ/nYtcRg6DQ=; b=mE2GJynsVGYQnkFTjkRN8uXmyYx+L5ramcPvJhP5JLdayth0F+IMkUEB8lBgxLmaXb n51wE2g3d154aTiKeAeFS5q7QYqDlE/+pce4D6UTEFkBADJHCUWzcnp/N80axO3+KF2G VbuFu/DLKYjmjvpmcyF1esmxwLYbPK/S1/Wgy0Kl+NmlrNz2fso1fGHqsA2ij78z2Ff8 rAc2yEjtjxOh0HzI31sFH0/hMK+OS55W0Es5U+8s+/yK67VGGRwGvA0tK3gamuWPka+8 sPCU0j8iRggCj1cbv0Ks82qcqwv6PnOG1ARqkOwn5CjGqGe+S+hp1AxaSKuTYG0kfbYl 5KJA== X-Gm-Message-State: AOAM5323TqKnbZo+/YO7EzbAsvV+fP4Y3LfkIUJBbn6IbnxYmu7c5dpv MFgRh91zue4A5bbsnSrBctU= X-Google-Smtp-Source: ABdhPJwZSt4j/hpGDHQCbpMCry62EJVwG3JnboYcw/SAtcKXDw/vNpzzvcH9ME3pgnU7fs+5wOEsLw== X-Received: by 2002:a17:902:ab89:b029:d3:9c6b:9d9a with SMTP id f9-20020a170902ab89b02900d39c6b9d9amr8062095plr.58.1602172425280; Thu, 08 Oct 2020 08:53:45 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.53.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:53:44 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 027/117] i2400m: set i2400m_rx_stats_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:39 +0000 Message-Id: <20201008155209.18025-27-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: c71228caf91e ("i2400m: debugfs controls") Signed-off-by: Taehee Yoo --- drivers/net/wimax/i2400m/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wimax/i2400m/debugfs.c b/drivers/net/wimax/i2400m/debugfs.c index 1c640b41ea4c..9eda1535f777 100644 --- a/drivers/net/wimax/i2400m/debugfs.c +++ b/drivers/net/wimax/i2400m/debugfs.c @@ -87,6 +87,7 @@ const struct file_operations i2400m_rx_stats_fops = { .read = i2400m_rx_stats_read, .write = i2400m_rx_stats_write, .llseek = default_llseek, + .owner = THIS_MODULE, }; From patchwork Thu Oct 8 15:50:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824149 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE2A8C433DF for ; Thu, 8 Oct 2020 16:00:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 72674206F0 for ; Thu, 8 Oct 2020 16:00:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gls/p8Ou" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732089AbgJHQAu (ORCPT ); Thu, 8 Oct 2020 12:00:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729947AbgJHPxs (ORCPT ); Thu, 8 Oct 2020 11:53:48 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAF1CC0613D3; Thu, 8 Oct 2020 08:53:48 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id c6so2959182plr.9; Thu, 08 Oct 2020 08:53:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eGFJIgP053ScE+PFF1Ivd3oGlVY7ykLxtYi1ouJSioY=; b=gls/p8OuzTkk61NIYH6ttm05V3El7H3svT1l2pGM9oFjtD3D6x8xUJyiDRgVvS2NH/ DezwkNHM8I8oDnKKAaZHZ16ik6TWjxzhoR3LXEcqlEfpfVbRPQa5ci1f58JkP6NS74vB CPAUrJFfRgz1EGQv+3rkVSJO1+DPk8oVz9Y2mSU6POwh2YVfVRp0SVPhXzYe8J7Wa+gu FX2yIysimaUhQrgC/MKtdvVPqX9uJ9ju7kSqmQpeBzYC/w0H1LiHw0KlVheC2u6jF9IO BsisPogS5fdZ6RH9S0GzgNyzW3tBualuLLh7SrqYykvc+Uc85aMX3QpXLwuQgKMh3ecs /73w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=eGFJIgP053ScE+PFF1Ivd3oGlVY7ykLxtYi1ouJSioY=; b=h6jzeIM6WYYwCWPYvIQYesd+zKpOlVx49gDKn4k4Dtwm3mXxQhHOHZTPtwTZxI0p2H fFYKaPBKhQYSX0CEYpz4n3BwwP4LAcpA+TyqMnMbKkP/771nuJ/o+QG9bTUjjDGsyw5g MfN8Pc/YV/uMYECh8seNIxl6svFg2EWWj1rTtUcy578uPFd6wV1JLj+nrjFP0gkrWeDK h5W7Py8YfYoGRKFaPRP0ZuOmEdmGkc9dpdV33KtMSkkXBIQU1lZyn+/uFRyZnHSa1+Yv GYy2obQuAOo5jjEBQ2zV5+E5J32kd6F5Qa2dxa6bgB6BH8bv+RDcsnDO9XJMudxhJ7RO zBdA== X-Gm-Message-State: AOAM531ybf33qipJkopfN2eaP+8Yy4FZ1WrQZJTx9uQuTc9tL2um/niz xBMGerO7+GgcCnR6S6PalOQ= X-Google-Smtp-Source: ABdhPJxsWZMb7ZJCJUG6Q992Mp5ALpIFeteOEDbadcmPYxSfOk5F56jNKdsmk6Cd46ZPPg7cqIpzfg== X-Received: by 2002:a17:902:b088:b029:d3:f20c:ed85 with SMTP id p8-20020a170902b088b02900d3f20ced85mr8315735plr.8.1602172428348; Thu, 08 Oct 2020 08:53:48 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.53.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:53:47 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 028/117] i2400m: set i2400m_tx_stats_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:40 +0000 Message-Id: <20201008155209.18025-28-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: c71228caf91e ("i2400m: debugfs controls") Signed-off-by: Taehee Yoo --- drivers/net/wimax/i2400m/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wimax/i2400m/debugfs.c b/drivers/net/wimax/i2400m/debugfs.c index 9eda1535f777..144f8a7e98af 100644 --- a/drivers/net/wimax/i2400m/debugfs.c +++ b/drivers/net/wimax/i2400m/debugfs.c @@ -141,6 +141,7 @@ const struct file_operations i2400m_tx_stats_fops = { .read = i2400m_tx_stats_read, .write = i2400m_tx_stats_write, .llseek = default_llseek, + .owner = THIS_MODULE, }; From patchwork Thu Oct 8 15:50:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824147 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3502EC43457 for ; Thu, 8 Oct 2020 16:00:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D30F920B1F for ; Thu, 8 Oct 2020 16:00:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="asLmgsKA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730265AbgJHQAk (ORCPT ); Thu, 8 Oct 2020 12:00:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730012AbgJHPxw (ORCPT ); Thu, 8 Oct 2020 11:53:52 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3C83C0613D4; Thu, 8 Oct 2020 08:53:51 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id l126so4338313pfd.5; Thu, 08 Oct 2020 08:53:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=P9298AG1dm6vfs+dshDdtQyz3vMsR0EKf8MkvhRZOlo=; b=asLmgsKAsat7YqoU7OgFtc4rXWkYd9uCR//A16sXfAY3Ef+sOlkno0v7O54mj26uWU 2Q2bMFfZ2pi/22cA/vBL73xy0Au8cqQ7ErwTRDLbfobqnQdJijuU8d/W7e+log/vxCnP LTbMSx6VdwW/efWaVC5QcvAlenVcRZZtb4FTtIbEH/O5BULZK8JVbK90u65SQ2DS00uX SKVdvxQ9QlVClfstF4WG7v0TTDIIkdLZSzJRYH4yuRu0g8vMTTZXD18/Ppg6R3V9669a CFOApXaVIGTKjh0YxzVlIiyraOfrbYiGqa45UDWefZ4ThMl4GOQit8/7dfPsUVHiVEg7 wpkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=P9298AG1dm6vfs+dshDdtQyz3vMsR0EKf8MkvhRZOlo=; b=IbH+UoHqUrWR0pivw/6NpM1vj4AldT4ugoJsNKniefXjYHQWQZodkPg4ntkbF/0z7M BYOw1CQ57lL79TuEYK6BbblpAXWwRTA/y7K4pzgt3xsAJa6tiMT13d7ks1MxTxeRu7jf xRujagl1KNhKvihjAXpOCJoBOuQhJYw6Oj5rltTlJMWi81ykOrccU/p7CQ3UaGhJze41 V5Oj54jNjXZ8p66Wv114SIJLL9MYaaUNt/n5TtiFFbqCFDOjpMPmP+MKrB+Q0UWpPOIE 7TmpUBf27SMkvKuog4reVNlkHL1+07uGnlFE9ZPA06BOd/y+UyZ/8Jtc+L/BwYgcHE+k kpaQ== X-Gm-Message-State: AOAM530/PaDJyosxRvgb4DTMWUPJhVpSujsgtjl6eOg84mZr2cFcrw13 3hLlRO5M8LH1t/KeRFZTGS4= X-Google-Smtp-Source: ABdhPJyCN6uWEoc7pNtVBtqCaj2k7X+qYmBxgweeTk1Lsv/8X70TsV2p31uSpO58w0Yk2LjSoEk87g== X-Received: by 2002:a05:6a00:8c5:b029:13e:ce2c:88bd with SMTP id s5-20020a056a0008c5b029013ece2c88bdmr8383825pfu.0.1602172431446; Thu, 08 Oct 2020 08:53:51 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.53.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:53:50 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 029/117] dpaa2-eth: set dpaa2_dbg_cpu_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:41 +0000 Message-Id: <20201008155209.18025-29-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 091a19ea6e34 ("dpaa2-eth: add debugfs statistics") Signed-off-by: Taehee Yoo --- drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c index 56d9927fbfda..765577386fc7 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c @@ -59,6 +59,7 @@ static const struct file_operations dpaa2_dbg_cpu_ops = { .read = seq_read, .llseek = seq_lseek, .release = single_release, + .owner = THIS_MODULE, }; static char *fq_type_to_str(struct dpaa2_eth_fq *fq) From patchwork Thu Oct 8 15:50:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824139 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ECF03C433DF for ; Thu, 8 Oct 2020 16:00:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 871BA215A4 for ; Thu, 8 Oct 2020 16:00:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Rytm3xZP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730056AbgJHPyX (ORCPT ); Thu, 8 Oct 2020 11:54:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729910AbgJHPxz (ORCPT ); Thu, 8 Oct 2020 11:53:55 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14CE6C0613D5; Thu, 8 Oct 2020 08:53:55 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id k8so4345987pfk.2; Thu, 08 Oct 2020 08:53:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4L3XND6xoqPBlA6sJuwVFWG/TTno17xP2f+hlXCsbLk=; b=Rytm3xZPYFVlK8DKcNpatzMgWnH0Kp9nl0t3LIZj2EO0esAcUO2PBmxorWtiiWhpvZ oB/OnlB5z+b0z79/k7ORpaiVKVgfAedUClpCL7MPnk4nE9FURYX9gFW2WQp/1ZRmtUvT a1cGChkKFhKkSE85l7C5gdRc6ZrIgslxVMf/L6vQYlogeb7HwuPDXlc76eySqd8N0LCo +dqoZAu1n0zfdAou1hMXe8Gw0RXF01IAdkHTK5Eo6T1VvLlcdORjlMF5fyChE2X2TDt9 MaiR1GUX7VmsjteMtnGKeoqzrU7irzSSHHKLDe/fOD79l5Vn+dpaEVx+17MANdoZKMjP +jMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4L3XND6xoqPBlA6sJuwVFWG/TTno17xP2f+hlXCsbLk=; b=AjY7gXzkJrU+qIDIv2XLzxKIdsCsypkpc5OUV39rQNDJl49yDX3ZLwVzSczwRZ/TY1 tetWW76D6nv0Xcpv/mpIs1p6edWf3S3TcpwTuF4I9Rmv4iw6qKNeFUVxoO/NV/8WVGFm 1FtO1hFmeh6IS51blfZk5UbBjnLPDiZaLY7hrjnkQt04GAWwd60+u1JNnYs6rKrpCclM jSuHv1gYdlFVPEKiBKXI58TBGoDtL5w6/MT4Ud9J6KO+j/lEKfKa6HeqPfafhPB/K2ml 5YlZlyg2ykQ7CI0guJIunDnke8/70CTANedgJknpba1P1p/RnjxjPDFNwJGFvcRkSJSD XGcw== X-Gm-Message-State: AOAM533igfsSCown14kyKegTnvFEkiFHqHS5cIo8AR00ApwZKRaUD62i 3gLwM24VEOay8nm/4dmAqoc= X-Google-Smtp-Source: ABdhPJzBFontmhwCx6Uhj4h1axK1OLtAEbY3dpBW0LDzPbTb/RKl5UfUQlqwj1nixGUBngeaeockJw== X-Received: by 2002:a63:d6:: with SMTP id 205mr7778165pga.309.1602172434615; Thu, 08 Oct 2020 08:53:54 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.53.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:53:53 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 030/117] dpaa2-eth: set dpaa2_dbg_fq_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:42 +0000 Message-Id: <20201008155209.18025-30-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 091a19ea6e34 ("dpaa2-eth: add debugfs statistics") Signed-off-by: Taehee Yoo --- drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c index 765577386fc7..df84324efb50 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c @@ -124,6 +124,7 @@ static const struct file_operations dpaa2_dbg_fq_ops = { .read = seq_read, .llseek = seq_lseek, .release = single_release, + .owner = THIS_MODULE, }; static int dpaa2_dbg_ch_show(struct seq_file *file, void *offset) From patchwork Thu Oct 8 15:50:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823657 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 922D0C4363C for ; Thu, 8 Oct 2020 15:54:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2CE33215A4 for ; Thu, 8 Oct 2020 15:54:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="V4s+5OTB" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731603AbgJHPyK (ORCPT ); Thu, 8 Oct 2020 11:54:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729756AbgJHPyE (ORCPT ); Thu, 8 Oct 2020 11:54:04 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54697C0613D6; Thu, 8 Oct 2020 08:53:58 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id r10so4640649pgb.10; Thu, 08 Oct 2020 08:53:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bB+1MXsxDZAN9gzNUWCR5+heJ/Oe78Bel06flJGFtNY=; b=V4s+5OTBPIf1OyMNjaAFgK3GOh2dRJaE4BN4GrM+GKyMKxyo+hJVkh88LJFHSZ/mYu S00TDvyTeat2yKY8YIFfVM5YOB54Csynlnud//6VXiTP5w2jet65s2r4PqmNNf92ZJ9r +kGtkRtVr0W8OhQxuRB+J55BXeX35zHsB/HqgSKULvb9eTPxKGJa/h5ETMxZwL1tcGHY CZV9IhNIUCEvr1WiZs9COnvfJPgI+G5ubxkLLtLf219XzujtVeTNuGDpWcc1Fdl27lzn aiPqi5XNz6j+lxK3nDrGO8S3sm7DSu5sPhwoADjLWQljzEbSb+oNKjQ06Ia4NSoeDWeq mhHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bB+1MXsxDZAN9gzNUWCR5+heJ/Oe78Bel06flJGFtNY=; b=WBXlW+QFOhAbJd/7mEAK1h74kc6LAP6M3ElWtc9hUxrDLkXWC0TiCFgL4f3DZT8Ahs beYRCWPUSY7TWankndHEllbePq9WOtt8VKYPFVwfXbeY7JYz3JHzd2KyKKk9rjfgX55M TDRbZD0KYbR4Sr4lFDvadHkwdssY/QHGoWXuvaXWiu+h7InSLvZwdN59Yvg7vR1bGXTy XJwD0Cs968gAlqJjiufEZOx25hUbHkeLA0/nw3LVMOJ79GsIPsxGjF201+KhITCw1W5u oHJWbO1Y+EOvrOwtKNburuVF8/iujrHzTjQPvJz1Za3h1GMl2/67a+rRoO/ihMRIlklM +82w== X-Gm-Message-State: AOAM530Oed/RPC2Qmr8Zyz9AUAJDUpAD8t48+KvtRq8mU0+i7q9x4ebJ W42i9emuUJWIvuLMM58t2ho= X-Google-Smtp-Source: ABdhPJxHlto/JEPkuzSQGItC+3Wl+aSVcm7IstwCxAkZK0lCP8LPfmgscVaiK1aG51zwX7rbq3Ktog== X-Received: by 2002:a63:f015:: with SMTP id k21mr8053455pgh.422.1602172437868; Thu, 08 Oct 2020 08:53:57 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.53.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:53:57 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 031/117] dpaa2-eth: set dpaa2_dbg_ch_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:43 +0000 Message-Id: <20201008155209.18025-31-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 091a19ea6e34 ("dpaa2-eth: add debugfs statistics") Signed-off-by: Taehee Yoo --- drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c index df84324efb50..af76cb9387bd 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c @@ -170,6 +170,7 @@ static const struct file_operations dpaa2_dbg_ch_ops = { .read = seq_read, .llseek = seq_lseek, .release = single_release, + .owner = THIS_MODULE, }; void dpaa2_dbg_add(struct dpaa2_eth_priv *priv) From patchwork Thu Oct 8 15:50:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823653 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8FF78C04EBE for ; Thu, 8 Oct 2020 15:54:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 393BB217BA for ; Thu, 8 Oct 2020 15:54:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VEPcyYyy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731597AbgJHPyI (ORCPT ); Thu, 8 Oct 2020 11:54:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731571AbgJHPyE (ORCPT ); Thu, 8 Oct 2020 11:54:04 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 649D6C0613D7; Thu, 8 Oct 2020 08:54:01 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id x13so1715835pfa.9; Thu, 08 Oct 2020 08:54:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9e5MAIq/WTxBR7cO0XNN15x8KyvYX2HvQDF/lGOVVbY=; b=VEPcyYyycqwjB0EnovEtgbGKIn5POpBjbFZtDPIWfjZaBuLQWDFhH9t9tC4IoSL9Z+ JkZ7UC9EpF0YmfT0YokNYkRyX+D8KcroIS4Okqi1yVczrJ5AwjPKVIrfuL5HufXbWbHT j8gtBJgzU9Z56xhn3BH4B6T46VL+Bd2DOlbVJc3EtmtKsRGJzpYnkx2/qf0jYvDo5S8h nAkMOCXeIJxenDj0yJVBf7i/3/2Hmp4JlAxiaR6ycGalwbBP+ewXwDr3B1JB5WhhE2VP diA63dBzwYeGNv45Rgx95K2zuccncRI6nLj98KSVKnszImyBzm8+4DO83GTLt5+6rbAW E8Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9e5MAIq/WTxBR7cO0XNN15x8KyvYX2HvQDF/lGOVVbY=; b=oWcv1d7WPFZDzDg/iPUCzo+M56BERxxvOM72DBRDgIdAiqf4N75nZqLS3kU8tAfjkN dzN51XAIFzjBkM/Nk0OfyQDS8h4MuTFB+wr64E5EhLkwXk4HHrL+o6sPDlQhsvYExIFU PQJaC/TEY+EGPurWp0Fu8KijGO9mHNjfzN9zJAx/jchdQKRyfeNubaULnHBP+xMhmnnB n+d0uYffBoBfXrAl3vj5lSXBsNL+LjDqkr8/S/CZ5BpXWmOncLE/Qyv0i0MSRy+9hvmQ PgDF8Atia3udMEAW4L8pViFXm1nLS9FlxqyQGx7c+zgfCOfceENzoOIgQfrnJ733gY3h Uy3Q== X-Gm-Message-State: AOAM531tl0yQRVi8D/XaGu+lS2sk67sFxoav+q3mLQeppUTnB/MnMxDj ZmyhZaMC0B+1ORv5c2gdev0= X-Google-Smtp-Source: ABdhPJyNwiyW0Q0htoPcCbOrJy5lwgX962d4O07C/UQfwFNQx9PwuZS/ALYsGSOIWNY4LZjqH/bO9Q== X-Received: by 2002:a17:90b:ed3:: with SMTP id gz19mr7484382pjb.53.1602172440938; Thu, 08 Oct 2020 08:54:00 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.53.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:54:00 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 032/117] wl1271: set DEBUGFS_READONLY_FILE.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:44 +0000 Message-Id: <20201008155209.18025-32-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: f5fc0f86b02a ("wl1271: add wl1271 driver files") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ti/wlcore/debugfs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ti/wlcore/debugfs.h b/drivers/net/wireless/ti/wlcore/debugfs.h index fc3bb0d2ab8d..9cc2dee42f51 100644 --- a/drivers/net/wireless/ti/wlcore/debugfs.h +++ b/drivers/net/wireless/ti/wlcore/debugfs.h @@ -35,6 +35,7 @@ static const struct file_operations name## _ops = { \ .read = name## _read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ }; #define DEBUGFS_ADD(name, parent) \ From patchwork Thu Oct 8 15:50:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823661 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29C9AC4363A for ; Thu, 8 Oct 2020 15:54:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C05CE21924 for ; Thu, 8 Oct 2020 15:54:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="doP3v7RA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731584AbgJHPyH (ORCPT ); Thu, 8 Oct 2020 11:54:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730398AbgJHPyE (ORCPT ); Thu, 8 Oct 2020 11:54:04 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71333C061755; Thu, 8 Oct 2020 08:54:04 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id o25so4675432pgm.0; Thu, 08 Oct 2020 08:54:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RcPVobIBGLdE5Ssa/2D1gELvSd5HcpPZzXr83NOombI=; b=doP3v7RA0BL6AZ4CWqRq4lssx5fvxz0ArdbJGOY/HOE2AVHQWyttx/Afmz6HRsCexk AzxlNZQ4gi9bjoEQPgd7+jN3L4mVeV4bmy5DFQ8MCIiA2I8ELljG0iUoGL9hvlzeZGd9 3JFbWNISr7Ayljyvl7AVH/nxr/zZfJ42DGOr8pD9bz4KU2gtwAyla9HsUWYbXJYDiiGu GYXogpldgR1S1mELw4IgIWN1ZgGFH6RnQ+ywN8/4A6EptzjCWvHzsFg0+9s9N90lTy+L T0tkGQXZpU2cljmBu02+yqNw/TqLRP681C7lGQGF2Byfnimn7Km+oGallRzQBpU1ykF4 oJnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RcPVobIBGLdE5Ssa/2D1gELvSd5HcpPZzXr83NOombI=; b=G9bOAgTlH+Evjcfsb9MKhlzcoqZ4k5Vc8s1qO7mfeROH1dCJvFyoZWjM6v55JXPASq Ktw5/ThqfL1QD6C77nedwhE4zAo96skCSKBzMUsmBtyRK/YTFzbKLmdNPNjBvKIO2RXh tzOTL0m6L1mPeR2rwyB51MKzBOHr5aeOD0tEZ43GeKqWRoKpJaCJmwan3PI5bOqziWzN 3ws3I3kVoj2URl+0FvBW+aE48+rjDFR0ka74vn63YDU73fZ/9H6Zs11QNMgaSXbTDuU/ QH7PciHZPyshztIIdK7VEGDzO5C/xL58Bc19gwwq75gB8KbbJOSz8Xn7zqeXrdaVYHxD nuaw== X-Gm-Message-State: AOAM530KvfCd7/SLKknxjipYkcEJWxkGIKgiqqBZQysjDSIc0RvhEzbX AfW0QXiQ7XjJmM8A+MFV4oY= X-Google-Smtp-Source: ABdhPJxqbTQAqO8N4iV4KGhy/r46l8tOZ8veqsq9+0sueVuWWLRPtvguiXJ2E8oRKlGARV/LCSo3HA== X-Received: by 2002:a17:90a:d596:: with SMTP id v22mr9301768pju.146.1602172444033; Thu, 08 Oct 2020 08:54:04 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.54.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:54:03 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 033/117] wl1271: set DEBUGFS_FWSTATS_FILE.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:45 +0000 Message-Id: <20201008155209.18025-33-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: f5fc0f86b02a ("wl1271: add wl1271 driver files") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ti/wlcore/debugfs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ti/wlcore/debugfs.h b/drivers/net/wireless/ti/wlcore/debugfs.h index 9cc2dee42f51..681dead95e0c 100644 --- a/drivers/net/wireless/ti/wlcore/debugfs.h +++ b/drivers/net/wireless/ti/wlcore/debugfs.h @@ -69,6 +69,7 @@ static const struct file_operations sub## _ ##name## _ops = { \ .read = sub## _ ##name## _read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ }; #define DEBUGFS_FWSTATS_FILE_ARRAY(sub, name, len, struct_type) \ From patchwork Thu Oct 8 15:50:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823659 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6698FC4363A for ; Thu, 8 Oct 2020 15:54:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1038520B1F for ; Thu, 8 Oct 2020 15:54:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LpZkpZ2t" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730141AbgJHPyO (ORCPT ); Thu, 8 Oct 2020 11:54:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730398AbgJHPyH (ORCPT ); Thu, 8 Oct 2020 11:54:07 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80B19C061755; Thu, 8 Oct 2020 08:54:07 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id y14so4316681pfp.13; Thu, 08 Oct 2020 08:54:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RnKHHS78J0saEmG0sVvwGKvFq7qZf5SdKx5R1k+dQbo=; b=LpZkpZ2tNaRXu9D0z3lHwsvdaPoX+ewUUt1gSAjxW1cqZp4b0x4tTXt6l3Du2zaR4a Qgq2mqpw5FZUDqUUyT4P0zRVBg7NJDPow3ctPQZYfpE4ckFiOFTBs7jsEAoMYF62Rzqg u6/kAfHgPKxnTtZ7ivIEvA4vterxCGymeowBjhXclOpD1e1qj95ke7bXLOhOcf3pKrkX v2o8B9SooRqoRoW9c2koIMfmoNNzTspOW/J8tU8oAv5y6+DjyWZ6ossORKEdqBRVqNVO gLPa8xpS1cZxAIzhXDJDTWvGMJCKeU50RwF493HkI7SFRp7OAMJ63fykI1FSjbWXLkEV KBbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RnKHHS78J0saEmG0sVvwGKvFq7qZf5SdKx5R1k+dQbo=; b=iFQOYOArFSd7qj9SxRaACAqyB9HDXjAkj0hMRDVleEn8SJncaRxvnWJ8+EyAeCoby8 /Y+d7OJW4VgnktuXLoZoTwHQdFiHTYDdgfwcLIa65mEY+6A9Tgrdf9urQJ/67+/7B3bL Q1hPiZydgBBy4SsuSR2Bn5g+zv/j0mP2wi3fdE5oBiWhESoDYfiKDTXUmXpYckqIyl/c ogIMibvgCiI81uFkR5tZLH83BQ2XjxR/wt0Vff3Px2TJXfOgqhl9tSlkZgS/+L9jHjzq S8rrgtl9ZP/0JpTfiZHRyEckL44TUKwoIgWtbyjAf5xLtNfuyR+yeR1mKxizj1yznm1i 45wg== X-Gm-Message-State: AOAM533NgLGBrxs3xJqvDSt0IeWSEy5dv6R8TbvInb62uWVty5TP0vna gKwVFIaX/aQmyswiBsJ+YIA= X-Google-Smtp-Source: ABdhPJyCt8fguL6zVgbRt+BARXsMdx909/mIC/GLvJgSuUHIzAEnWdUETkaWLcINPbzjprJnVdg9wg== X-Received: by 2002:a17:90a:1702:: with SMTP id z2mr8976493pjd.88.1602172447070; Thu, 08 Oct 2020 08:54:07 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.54.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:54:06 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 034/117] wlcore: set DEBUGFS_FWSTATS_FILE_ARRAY.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:46 +0000 Message-Id: <20201008155209.18025-34-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: bcca1bbdd412 ("wlcore: add debugfs macro to help print fw statistics arrays") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ti/wlcore/debugfs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ti/wlcore/debugfs.h b/drivers/net/wireless/ti/wlcore/debugfs.h index 681dead95e0c..2889cf0bcfb7 100644 --- a/drivers/net/wireless/ti/wlcore/debugfs.h +++ b/drivers/net/wireless/ti/wlcore/debugfs.h @@ -95,6 +95,7 @@ static const struct file_operations sub## _ ##name## _ops = { \ .read = sub## _ ##name## _read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ }; #define DEBUGFS_FWSTATS_ADD(sub, name) \ From patchwork Thu Oct 8 15:50:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824145 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D18A3C433E7 for ; Thu, 8 Oct 2020 16:00:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7CAB0206F0 for ; Thu, 8 Oct 2020 16:00:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fRm40/82" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731681AbgJHQAi (ORCPT ); Thu, 8 Oct 2020 12:00:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731604AbgJHPyK (ORCPT ); Thu, 8 Oct 2020 11:54:10 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D7C1C061755; Thu, 8 Oct 2020 08:54:10 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id n9so4641747pgf.9; Thu, 08 Oct 2020 08:54:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5ZO2ElXGMMwApl/ZmLhQFUcHmK3CxaaCCzXn5YZAuEQ=; b=fRm40/82YYywOHwJq01N2WxvFNO7xJhSmhFWbjqvG3ytOWT6IRjrBjH1B+UZsj43qN HWWiF1ih/sYM6m/vGsCGMUiyfs64Gk2ZggbjWIarmZKDzNE9SgoHY4TZ+7iRoXPDcHRy TLueaGp2ghx7BnCCdx/VwXDjE1WbZwM+UU3Nu8c3HbsDmXp9KlmApuDFZN7fci4GWNP8 dr+p1cYOKG3xwbV9KEJgceu1Wj6R76fec6ORenSDfc8uYYi/FoQYBbYZo8ywpHS2sGtz sZFmb+ft1Rg+XTFTT3ItEyu53hijmISVQ9QJxw/frss6ZdJwhPNZaRgF5azmTjB/O5sG kmtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5ZO2ElXGMMwApl/ZmLhQFUcHmK3CxaaCCzXn5YZAuEQ=; b=FUum+ag9msajbgwE8c0YMrhqAnp2fKXfkiEAa7u2gL/uMLxBNSB+SBeGzz+XgJUldW kuYV5TY5rjlwpm2w6ODtB3ySyIOp5eFurkpiZeeQjrVOrUv1P9SMXSmDNcSHI4jt4xps dKhpuCuSAMDZT95dCgBmCVTG+0EJbmvE+XGIlF+vTC7nMiEZF/fJDfJHuCg1r9O8oyUl cKFUlyddy6MMfsYT4AIoX4Ic+cPKwL6N0oiEkU5sxlqFXElYoWIks+A82Oi0uS61AgD0 kj4skhU8kHwAwzwYf6KIqzENOf026q5RlRz0wjoZ7m7rl5v/7lfQ16HpEe2YKZGDuOBp /z7w== X-Gm-Message-State: AOAM530BJlYsAUgVk78imQQguC8TmaPyGwRH3Dt3L5HTXk9YLOlDZIcl 05Ul0B7rx0LCJwy/q1zZ6cxcKLgSlzw= X-Google-Smtp-Source: ABdhPJz8/sxbLhnWP+Sxzv0bLjRqwNVVo0FNhE25xq2oSmNyVJ8GCa4TczdH/tDjQCLtCyH+aPOQIA== X-Received: by 2002:a17:90a:1ce:: with SMTP id 14mr8972810pjd.209.1602172450127; Thu, 08 Oct 2020 08:54:10 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.54.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:54:09 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 035/117] wl12xx: set DEBUGFS_FWSTATS_FILE_ARRAY.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:47 +0000 Message-Id: <20201008155209.18025-35-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 2f01a1f58889 ("wl12xx: add driver") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ti/wl1251/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ti/wl1251/debugfs.c b/drivers/net/wireless/ti/wl1251/debugfs.c index d48746e640cc..0b09ffec9027 100644 --- a/drivers/net/wireless/ti/wl1251/debugfs.c +++ b/drivers/net/wireless/ti/wl1251/debugfs.c @@ -35,6 +35,7 @@ static const struct file_operations name## _ops = { \ .read = name## _read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ }; #define DEBUGFS_ADD(name, parent) \ From patchwork Thu Oct 8 15:50:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824141 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26DA5C43457 for ; Thu, 8 Oct 2020 16:00:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C9B2B20B1F for ; Thu, 8 Oct 2020 16:00:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YignJrA9" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731495AbgJHQAb (ORCPT ); Thu, 8 Oct 2020 12:00:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729669AbgJHPyN (ORCPT ); Thu, 8 Oct 2020 11:54:13 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5234C0613D2; Thu, 8 Oct 2020 08:54:13 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id 144so4337687pfb.4; Thu, 08 Oct 2020 08:54:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=j2T/f3SwK/3JVH2Yszx+v22HOpXvzZbEXaEu/E+bUZM=; b=YignJrA9PUMKJECIxKa9Q+pE7mYZ9CkEeb5P+LlicVa9ErW/L+dpJsQVewXMhep+la M/hZOJBEohzRrhy3cRXy0OmpP7h3GmaoK0Bxvy9RhKVLQpMmRaXrqzfX2ZOMA+G+/nRB 8vVq6MZZzqJ8Uxm1raMQXYVKW/bR7Ke55WFIBcqZM2ekcMmq9j0vwcywIMBb+cE0nJWZ hagSK/F6VadfIQFCdEMvHvrBtjJgsmnIW6cUe+wB1+8sT11NLTccF2YUmg9reCIpZV0S arzqdvisCcnqqxVbefPvB8uAgwkB7UIGDfhsns3iR/ejZJpWUCHZbvs0Bn8lVNzJX/3S zpMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=j2T/f3SwK/3JVH2Yszx+v22HOpXvzZbEXaEu/E+bUZM=; b=LcIB5OUWAN68By4EM7lVJJ/NFmeB/Lm5Xjod1ikEwkL/JcMkdAqHZP6qLBwcX0/pLS t1pqfN5EYk/CyIZoWpVKjOQ32+WSWbVEkckKTIZpQuMcU+ckg63mK1GIj3s0aq8kNTHD Wp5AKrmOM2KfsN2tnEEoJkznCWo9G/NYh2zwGCgARRF/XDT+AeUTlqh8aUiLykk3d+rd AHDz/2KKsac5pAyQtA6ZDmbDtKsQiuLSnqQujFlfi7eYLwumQEk+PVa5F00yccMLh6gb Yw4nKBGci45NZ/DwYptc74jmqHxQ+eC4GKt7xVRb3zDObpYOuZuXBdSPobQQFfrV9grF G4Kw== X-Gm-Message-State: AOAM5334tYO67XfHbvuxOin9QCV/hfQq0mWXTU6ifWWs2hXcmT36hIdK m5vEupY3HP9ZvI0e05fI84Y= X-Google-Smtp-Source: ABdhPJz9av+T3B4XUsxKufR9TfsP2+JqjaGHUqd9C5v8KNZyVu80HUhaxEB5o2zvbClhkq5KTTL56A== X-Received: by 2002:a17:90a:fad:: with SMTP id 42mr9114973pjz.108.1602172453207; Thu, 08 Oct 2020 08:54:13 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.54.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:54:12 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 036/117] wl12xx: set DEBUGFS_READONLY_FILE.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:48 +0000 Message-Id: <20201008155209.18025-36-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 2f01a1f58889 ("wl12xx: add driver") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ti/wl1251/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ti/wl1251/debugfs.c b/drivers/net/wireless/ti/wl1251/debugfs.c index 0b09ffec9027..21d432532bc3 100644 --- a/drivers/net/wireless/ti/wl1251/debugfs.c +++ b/drivers/net/wireless/ti/wl1251/debugfs.c @@ -68,6 +68,7 @@ static const struct file_operations sub## _ ##name## _ops = { \ .read = sub## _ ##name## _read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ }; #define DEBUGFS_FWSTATS_ADD(sub, name) \ From patchwork Thu Oct 8 15:50:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823665 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6EF2CC4363A for ; Thu, 8 Oct 2020 15:54:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 10F5C215A4 for ; Thu, 8 Oct 2020 15:54:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="S5ZCJbOy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731342AbgJHPyZ (ORCPT ); Thu, 8 Oct 2020 11:54:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729753AbgJHPyQ (ORCPT ); Thu, 8 Oct 2020 11:54:16 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD7D6C0613D3; Thu, 8 Oct 2020 08:54:16 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id y14so4628027pgf.12; Thu, 08 Oct 2020 08:54:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iR4S+vy+X8hSsoqTbdxoK8jm+a+g1MB2e+bQrH820wQ=; b=S5ZCJbOy7n/QZlWA+9mN1zhH/XpNcrf9RmWlfwED1GCGVd1W/J6PRDVAcVYXkcCjIc +9BiE0fJ+ET0F7Ce2xrG+CsCd2WMnsRgakevHI+KhA9fgcu8tZo034pH4rhK89WoI/9L DN7gK8yJTQ8N81tWiat1fqk49SEYk91bbY0DrB9c6k5cTPaK9bqvYV3JKgICHxszUaXu lU1D2EioQt5jD8owDbTrfRGyga3RWMWuUsEKOMr/cVnJWhO4K7bXxYHXE0i6mEVFudjb W5gxRxc6rVdtoBfbbwneh1fRmb/w8dCN+pTc9y0Z94jgR15pmBOw9IitRpW8fPyzmVeg mN4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=iR4S+vy+X8hSsoqTbdxoK8jm+a+g1MB2e+bQrH820wQ=; b=fECsPeUeX7IYA7f6NjcoywxtG4zqFtikAlqGfCwDINH1z9LSztr5J91Fwoeq9EL5Nb VNv1PgI3iDpQPTj58xsBPeMOtll0XGgY+moV6WTj41JKtjFHlKa9qFNgintjWBHk8jkY nd+q3N15Fy0fWCh4z8uxTu1XV1ztXi7clizHDuen6ynjd9iaAuglP4zhlpX//2dV73lb OkYkFB/PR6UFjZGCfcM2Z8UNYq69He4rhYhV7vsiz+ER3PC6FzWZID+D00keJ/kaaptk IHjLElX1spam5YZDMD1dKQWO1iC/n+GiHJgFOdvgbZp2dOMqimNNdAY6vMTr+4qhtjGr K/lg== X-Gm-Message-State: AOAM532OQB930zcI9bhWbbseF4a8MIn/jtedRn0sab/rbvgA24qCl4Nw 8LsLTck7tVhPo+nH0qDkPUE= X-Google-Smtp-Source: ABdhPJyT87bpPvkaVRP+RJzdz/UgAQnnKLWZ2eOQ7hEo672A+FnaboJHcfQUmxMmUe5y45OYuEivuw== X-Received: by 2002:a17:90a:2a08:: with SMTP id i8mr8980567pjd.65.1602172456402; Thu, 08 Oct 2020 08:54:16 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.54.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:54:15 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 037/117] wl12xx: set tx_queue_len_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:49 +0000 Message-Id: <20201008155209.18025-37-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 2f01a1f58889 ("wl12xx: add driver") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ti/wl1251/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ti/wl1251/debugfs.c b/drivers/net/wireless/ti/wl1251/debugfs.c index 21d432532bc3..165e346bf383 100644 --- a/drivers/net/wireless/ti/wl1251/debugfs.c +++ b/drivers/net/wireless/ti/wl1251/debugfs.c @@ -214,6 +214,7 @@ static const struct file_operations tx_queue_len_ops = { .read = tx_queue_len_read, .open = simple_open, .llseek = generic_file_llseek, + .owner = THIS_MODULE, }; static ssize_t tx_queue_status_read(struct file *file, char __user *userbuf, From patchwork Thu Oct 8 15:50:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824143 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4E8AC04EBE for ; Thu, 8 Oct 2020 16:00:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7064821927 for ; Thu, 8 Oct 2020 16:00:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JEAaOm9M" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731391AbgJHQA3 (ORCPT ); Thu, 8 Oct 2020 12:00:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726708AbgJHPyT (ORCPT ); Thu, 8 Oct 2020 11:54:19 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCA25C0613D4; Thu, 8 Oct 2020 08:54:19 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id o25so4676049pgm.0; Thu, 08 Oct 2020 08:54:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kJEIuY10ai6zlbPjp0VSBvV/r2DU/7+6Msx8VOGe6WQ=; b=JEAaOm9Md/xQZge4rDB6D7HpTeX4CIHFlviVx0d1d6Rhx3FjCSG93aCDavRLmYKSMw go2XcQol81GAlyJo1mEcsBYZP2fa//xxKOieNWv36kbDXtgtHSoDbuxh+U9D0DBO8+x2 FJ4KK1lF4kZL+a9HfJO1NjfRWKESn1ONTYY9yt1TfzWpGv24xfNlUnGurpO/hw8WOPDi IOBPTlYG2nG+VXgRkaQ4rk9/O0Paqm9UhB1MamWF8yGlUVJmtbS2Wp09UwYHHFyh3lYU UTvbea2hZ/lCQIZa0sPDS4dXkme2eEtTAOyi7nJLc1zdNrtCsMWZbXDMFtVLO/wnQrPH tMxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kJEIuY10ai6zlbPjp0VSBvV/r2DU/7+6Msx8VOGe6WQ=; b=ohbPLA2Ji7dVOhhdLFl8EmH8cQBYGoFk6VER/64wRVIfvdvkmrKB+BnQwD7d46OLhN 8WAI/DksmM6e3cUPYkKGxvajzgc+kPyyCZskH3gigucH2zW7zKThzTZUBB+Hsz2SQZH5 5ys79s9sdYMPs9PcYWozCVFSOxJiUTJGE3gdymCKnhVKRoSbC08VFwTjhuGiT25dJgsn Wa6Siis0sUx7nehkUOfcu24i7P/FxihU7DlqXqZ2tPyhPjh+0O7CmYsdh+j8zDd5ME96 YLdS5ol8BdatzQGXw2h7mEcAALEDzQ7bu0nDljpLuitJ7+OOTc4+f3MgaIO+Pzc9Yf9s VQQw== X-Gm-Message-State: AOAM530acHOzLb8T+AGax98nfGgE2R3Xe0XQqpm7YaFKnCa0722zErCk X0XnVSMglGRMzWtCKXijj3U= X-Google-Smtp-Source: ABdhPJz4mgHqd9MgOMKVCXidvPBkl5jKCepJKOydTGr2HH+h3BQ5ALZkOToXvJ1/kWK+I67U75YcVw== X-Received: by 2002:a17:90b:118a:: with SMTP id gk10mr8415823pjb.218.1602172459423; Thu, 08 Oct 2020 08:54:19 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.54.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:54:18 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 038/117] wl1251: set tx_queue_status_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:50 +0000 Message-Id: <20201008155209.18025-38-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: b7339b1de0f7 ("wl1251: add tx queue status to debugfs") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ti/wl1251/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ti/wl1251/debugfs.c b/drivers/net/wireless/ti/wl1251/debugfs.c index 165e346bf383..0a26cee0f287 100644 --- a/drivers/net/wireless/ti/wl1251/debugfs.c +++ b/drivers/net/wireless/ti/wl1251/debugfs.c @@ -237,6 +237,7 @@ static const struct file_operations tx_queue_status_ops = { .read = tx_queue_status_read, .open = simple_open, .llseek = generic_file_llseek, + .owner = THIS_MODULE, }; static void wl1251_debugfs_delete_files(struct wl1251 *wl) From patchwork Thu Oct 8 15:50:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823669 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0F12C4363C for ; Thu, 8 Oct 2020 15:54:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 56E9F215A4 for ; Thu, 8 Oct 2020 15:54:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JqoDZT+Z" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731348AbgJHPy0 (ORCPT ); Thu, 8 Oct 2020 11:54:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729848AbgJHPyX (ORCPT ); Thu, 8 Oct 2020 11:54:23 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 075ADC061755; Thu, 8 Oct 2020 08:54:23 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id bb1so2973043plb.2; Thu, 08 Oct 2020 08:54:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nmiA/KBSwd7784lusScsHT1dwswv584qlu0MA+YYr8Q=; b=JqoDZT+ZV4Tkx+iVvMy2g9SdjspWLuC3FH4dQJaEJ5TZ3vCsYZNG8RGk6Sdg1PD0Ws ZCSyL+1ikSXRWXg3Qq/EI58YzwCjj8rzwkxIu1ou/PlnmFgGe/eR3gMZzg9ewwwV+YWo 8M4KrGfMsbGCgdUfAV3mD87B7SgDgJcjx4nGlHAL7pp0hYlfxpbr/AnzmQ7PzFl1nMZo v0bKkOeBlakO1CZD6EPt5TXLf/VYvMpAKxhwdb//vbfloEejFa0A1wWSR2jdnaru5sXT Def7q1IsCRurbtuMKL0bhcpgBb2eW4toml847hsFVMSsTXbhi87Ira2HgDKzPK+97WiT 87SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nmiA/KBSwd7784lusScsHT1dwswv584qlu0MA+YYr8Q=; b=dhi6y6LJbeZzQZorKcypCjdQPIcj3yJpA+3cGZnPZBEPLx64NVxtPPwj7gVoiVX99X nir45RE0ayFk9kin1tHoo9SlauuFe0gcTfFo8Wg9g1pa6/csh7SSt/jJXGGlk+X9F7WY w7VU495aUrWUcJl9FXDiSXfLK0/zzludwi4yTi0sGEfUkM0jitavC5V5YIbrzUoduGd+ XUWYuhMpoKW3usXTTBc2OqxwH4uWx5S+RBUKRN4mJyoQ4IZguMb+rE10hJCzFLFaaS53 RAZQ6HTN1hVDa8wZwWp9uz/AmELr2jRx8imZ+a1UCHDZECq8+Um+4xzpCsC5sVIXi/ra wddQ== X-Gm-Message-State: AOAM5317PJwNVX2VnH2qztK5t3q+/QFEfYh9KqCEA2HOAqUnI6zIb8NG plcLGoDKhbiVtud3RnVph9c= X-Google-Smtp-Source: ABdhPJzQSPT+BnGN12b7GhjmTHZAZa09NieEpWrULU7C9Uh8aw5gaRv5exlJXUN6U6N6AonEApbsjQ== X-Received: by 2002:a17:902:a613:b029:d3:8afc:da51 with SMTP id u19-20020a170902a613b02900d38afcda51mr8048476plq.19.1602172462567; Thu, 08 Oct 2020 08:54:22 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.54.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:54:21 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 039/117] iwlwifi: set rs_sta_dbgfs_scale_table_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:51 +0000 Message-Id: <20201008155209.18025-39-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 5ae212c9273d ("[PATCH] iwlwifi: add read rate scale table debugfs function") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlwifi/dvm/rs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/rs.c b/drivers/net/wireless/intel/iwlwifi/dvm/rs.c index 4fa4eab2d7f3..d013203c7d5a 100644 --- a/drivers/net/wireless/intel/iwlwifi/dvm/rs.c +++ b/drivers/net/wireless/intel/iwlwifi/dvm/rs.c @@ -3172,6 +3172,7 @@ static const struct file_operations rs_sta_dbgfs_scale_table_ops = { .read = rs_sta_dbgfs_scale_table_read, .open = simple_open, .llseek = default_llseek, + .owner = THIS_MODULE, }; static ssize_t rs_sta_dbgfs_stats_table_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) From patchwork Thu Oct 8 15:50:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823671 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D116FC4363C for ; Thu, 8 Oct 2020 15:54:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 83056215A4 for ; Thu, 8 Oct 2020 15:54:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iGgJ0J3R" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731358AbgJHPya (ORCPT ); Thu, 8 Oct 2020 11:54:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731347AbgJHPy0 (ORCPT ); Thu, 8 Oct 2020 11:54:26 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24F0FC061755; Thu, 8 Oct 2020 08:54:26 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id n9so4642388pgf.9; Thu, 08 Oct 2020 08:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aPA2QAnGhMDUdJK5y8jMZZbiJIgipLQypMRPcY4wieA=; b=iGgJ0J3R/CxBx+neusqxSD1FkvT+S1Kz7csHzxrMrC+PmshPp8Xo2JiKdgzGD6vuIF sLc+UZMKbFLwNjLSOYaE1/gVRL9go/OuZWifU5bG740nE9q49LXEiz61kBf4NiS73YpT kWDOltHyA5UMN2bL/B0qEGbBkqvZgEZzuy+KWsUUv8jOUHdR1/9ji3iObqpFJk73pUvt 3OODASUQ1S5DP2kcpFRigFQfkS+ZgIa8hAgkxfyliufDGOkQ075Y156+h1niBFj9l3X7 f+wACJR5761WKWdPntmAodgwcJvltQEtQQpIytFOR/uGVlYDw0oHKUajzxVRV1px7szo X45w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=aPA2QAnGhMDUdJK5y8jMZZbiJIgipLQypMRPcY4wieA=; b=W1ccMleC+6IRct7DrvDTNreAEknQIpxbKaPIfiOw6A4xCEjR7KeVm+vyDWYFSABpt+ t70+OQKj7aBOByWLsv1U0GC7ifRc5HvxyUGvSQqwH4znWNZ3ZWuf7kfCGqqSsVuLF8pd lQetHLpgQPRCzZuw0lkw97AFw+NopWXlsRH2TuwxEJGUBX9x7JuP9FmjQpdhjp4kU9m2 gZQGJGhXfJyLWvDxuDjaztl0/XgKW+Wx9ItlqnlxCB6yTObUeXQ8Ddp93WLaDIJVivnS XUoQMJu3rC91nsyQvrpsJj42ayVAkedxXl9v6jI12RGG6jrR/Al3CewZ9kwekb/kOxuX egYw== X-Gm-Message-State: AOAM532Ofe9TLNE0yDGUygALz3i9kupT0cHj9HYbdoAoWM5CFBzBGc5S bxNlkttVvIzb6nh7jdxttzg= X-Google-Smtp-Source: ABdhPJypYzQnSUA2G04bc7iq1fJrymQQ1dLk/u7pbYOumALwRWctezMNGKK86lfNyHHWK8GKebTILQ== X-Received: by 2002:aa7:8249:0:b029:142:2501:3964 with SMTP id e9-20020aa782490000b029014225013964mr8283912pfn.41.1602172465697; Thu, 08 Oct 2020 08:54:25 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.54.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:54:24 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 040/117] iwlwifi: set rs_sta_dbgfs_stats_table_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:52 +0000 Message-Id: <20201008155209.18025-40-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 0209dc11c769 ("[PATCH] iwlwifi: add debugfs rate scale stats") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlwifi/dvm/rs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/rs.c b/drivers/net/wireless/intel/iwlwifi/dvm/rs.c index d013203c7d5a..4075cb53bc73 100644 --- a/drivers/net/wireless/intel/iwlwifi/dvm/rs.c +++ b/drivers/net/wireless/intel/iwlwifi/dvm/rs.c @@ -3216,6 +3216,7 @@ static const struct file_operations rs_sta_dbgfs_stats_table_ops = { .read = rs_sta_dbgfs_stats_table_read, .open = simple_open, .llseek = default_llseek, + .owner = THIS_MODULE, }; static ssize_t rs_sta_dbgfs_rate_scale_data_read(struct file *file, From patchwork Thu Oct 8 15:50:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823673 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88A25C4363A for ; Thu, 8 Oct 2020 15:54:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2999920B1F for ; Thu, 8 Oct 2020 15:54:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qNW+UWgd" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731373AbgJHPye (ORCPT ); Thu, 8 Oct 2020 11:54:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726875AbgJHPy3 (ORCPT ); Thu, 8 Oct 2020 11:54:29 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33D86C061755; Thu, 8 Oct 2020 08:54:29 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id g29so4675322pgl.2; Thu, 08 Oct 2020 08:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=579xXxImxTayvwBd6InvITipqEeAafl3+1V6cI6/h+I=; b=qNW+UWgdykPHg0LsjsZbO++r1pXLf4LxfkjTfwPLkJjOk+aXPe0YSse2FeTMz54AzB AT3NhftsVRve5NUTcRVq2qJRwFWsdxyEE9RiLhLElVSeBLvRgU64bqdN5K4pXO+x6Xa9 3fbYzD75MKCuQ93gN90GNTojCPvHAHkJNs5zSVw3raYr9X63t4OD9ZNeyZrKs7V9LBf8 3fPufwkDKw6nSuGhDPZQkcBs+e7nfTVrl/xE/C2PiRrJI+t/vIKDWgTT0yJ+OrElNBWF K16puDrOAwlN/oLcAKISmvCdJjxur1XxQR8azDZxcZ0RhFfoQ+H+GFcw67nt0DNz4JRN QOLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=579xXxImxTayvwBd6InvITipqEeAafl3+1V6cI6/h+I=; b=QvlqJFc5/g3ACRwTiCq2tCIBbPc7anuDGVk0j8jW5CodItjtW3UJh6JacnIOcvciul GUJVwPwVShk3cc7dmtCMDkoP79mERSwV+3UQNgaZVTD9aKF8G0MsR+AZoMH15m3Y43hT H8KiBJLvMnZugIACg9AxJ8ysTDBTqmRF0J3QMV94NDaNXvg29eWerRVvmvY/EDHavzwL uf9xbyPkJG/L7xvbzHoSS/nW4/66G5WmlGu2Ei+cKUAI/rDCLWinjhsACzZ510UZj6t8 mpiWVHrLMGZ/aYZP6q9Nyb1LW4mndGZSrp+SSS6rpOy1BiDKkgiYFzYCNlPK7uZuLLlB bcAw== X-Gm-Message-State: AOAM532/gEhnHScG/3Jo/J5eOdtCBB7bTVFroajZyiN96RW6Wl6F7S0Q H/SqHOVN0CXJYmzi4B/EPH/WAkbbOSE= X-Google-Smtp-Source: ABdhPJyjrSBMa7L5sihGR1U7PPuHkxfJpc8v1Z3zMFmlpLsl8aqx4YTvyumzwfIQXCLi2zsUYHnAyQ== X-Received: by 2002:a63:b18:: with SMTP id 24mr5526672pgl.214.1602172468795; Thu, 08 Oct 2020 08:54:28 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.54.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:54:28 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 041/117] iwlwifi: set DEBUGFS_READ_FILE_OPS.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:53 +0000 Message-Id: <20201008155209.18025-41-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 712b6cf57a53 ("iwlwifi: Add debugfs to iwl core") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c b/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c index 911049201838..ac65141f0b3b 100644 --- a/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c +++ b/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c @@ -34,6 +34,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = { \ .read = iwl_dbgfs_##name##_read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ }; #define DEBUGFS_WRITE_FILE_OPS(name) \ From patchwork Thu Oct 8 15:50:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823751 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A774DC4363A for ; Thu, 8 Oct 2020 15:55:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 47E00206F7 for ; Thu, 8 Oct 2020 15:55:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="e95ojzE+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731762AbgJHPzj (ORCPT ); Thu, 8 Oct 2020 11:55:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731347AbgJHPyc (ORCPT ); Thu, 8 Oct 2020 11:54:32 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C87BC061755; Thu, 8 Oct 2020 08:54:32 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id y14so4317643pfp.13; Thu, 08 Oct 2020 08:54:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DExARAXGsmC/sowbMvji+AgBeV6mNpbfki6DNDx9Xq8=; b=e95ojzE+MH60CEYnSqGQmrOhPGAK23oIUSOtjRzvbXkRKGG1qpXLfl1EA8Rif7S1dk W2bSdYZk7SPN0jt6ekOb2ycdeRjEDcTkMzbKwHUlqAUn0tfj/IE7C6TdQxs/Z0Wg1X8p wSHYf/jJPAd6Uw7kA3OtUCMVkQ6bVek9TTrAs/iXJlZWMy1vjNFZSd4ptDzkcyKMjUrX +2IYKkKQxrZKnKbJvGI7rrd1PywsoGqq6c2vi798ovCAWMlvb7uxiDneXZcjCPct6Afa OhpjMSw3VQgnuy1C/a0CZKov/KhP8So3kyG8ogLJAZ7zTuqO1Xnnj57K65oAmDCXQs26 P2CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DExARAXGsmC/sowbMvji+AgBeV6mNpbfki6DNDx9Xq8=; b=cPp9UpYhw0Q5q7lVEZLgFTyNrqPsHKhg2V3oeP0HCzbOPtVj7Fqaq8AGbf1uyShQuW 0PqSmBuMSGLVEXVOcIKJvPGrZPkFsLRvGyguBRjqiHwdYAuKyP5H2lBJrDyv8kyMOUim 8VuzsICanlF6KhEtcFSV+cELIaIDw0BzN7kgJPkQrcwg5FDuVWoOiXa4YCRENLdORBZ5 ohsJARne0UEJa/RQJ407aXn8BvgH+i6EJDw+ERNMfN4JsYzJnTNslspViFoMFMMwhAqc pwu1VtiDJ8g6KZLm/G7tQBQ1ciIOJEgN4pURTz0L7PYHImtbGqsboKPizwe6a2IkSgjx YXQA== X-Gm-Message-State: AOAM530E8TFGqUy+XWEoeEWhIChVArbx2laUqn/JRBUfrTSEO8E5MPpx oluo/Tn2d/79QvDy5af80D4= X-Google-Smtp-Source: ABdhPJy8ySKJPlmfDjub0bPrRgBvI84Ef5KKeT0B/Z8mZFnH07DIwus8dleHcTYOOTpU348wUW4svA== X-Received: by 2002:a17:90a:9904:: with SMTP id b4mr8156708pjp.223.1602172471913; Thu, 08 Oct 2020 08:54:31 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.54.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:54:31 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 042/117] iwlwifi: set DEBUGFS_WRITE_FILE_OPS.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:54 +0000 Message-Id: <20201008155209.18025-42-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 189a2b5942d6 ("iwlwifi: trigger event log from debugfs") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c b/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c index ac65141f0b3b..41d969b46bae 100644 --- a/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c +++ b/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c @@ -42,6 +42,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = { \ .write = iwl_dbgfs_##name##_write, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ }; From patchwork Thu Oct 8 15:50:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823677 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB499C4363C for ; Thu, 8 Oct 2020 15:54:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8A2D2215A4 for ; Thu, 8 Oct 2020 15:54:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QVTXdnYT" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731396AbgJHPyi (ORCPT ); Thu, 8 Oct 2020 11:54:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731377AbgJHPyf (ORCPT ); Thu, 8 Oct 2020 11:54:35 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D7BBC0613D2; Thu, 8 Oct 2020 08:54:35 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id y14so4317753pfp.13; Thu, 08 Oct 2020 08:54:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OcfMun4v8oKxnyIXnfWE0XkQqSd4uJRZqO9scpwaSqs=; b=QVTXdnYT44U4kQSJnt6E7JvMjNnZTRkOwQC56/XjOt2Avv3fzpSwI+Wbri9MYxM45j YlzaOPWHUHButlY9hbyERN2VbBlhIxihQwYQ264rZR/idtzH9Xx5Wq4Fa8zykVcpjT4k Zjy0XO5b3hRsGGUYA+06L5uIjtrVs0j7RdcjV3XcRGso81bewfJG4Em5lB8kgmvpnZj9 zAzom5macZ8gXq74GZcD7z3n9WU8KfWgWWGV7P7H6wKRUefwlnO+Suo/fNTYKwOrrIIc rlDHo4xpHyBBlbQ0seca7rE0p3RC0iWpHHuprqneIEC4VsppL0Todec7HIxnzwEVx/Ex lYPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OcfMun4v8oKxnyIXnfWE0XkQqSd4uJRZqO9scpwaSqs=; b=mTXh02ifSM7CMLI09fG89XDP12NBsvgODIRiDpLEBc9F1eo+4e05bnUO1YLMayLCLg GBJUlTEckqybluIBYpzKN4gzKT7gj6X9KkNV8YL2QfrhcNTWhE5TbcgcLQ6XmcOCQV7U xnUJ2mWmj8rXoqmzhNAnGeBxiMrpjvv3EbxZYAZqJeXGx0S1SYA1C7oxmGyJRxIfanZD lJcJRGZX/82LAqOtIB2WNXjuyM71G/p5tZ2YXvoG2cl97Fy+0mI/TnQKA1ettRkhCctK k9xCtjQ4mwMhOYa4dPSGG621IeXcfG/A/nnnGKA0pejk3jJCBQZ0yc28G21LLef5exW3 kJEQ== X-Gm-Message-State: AOAM530u/R6TC/ASjXv4CYI7CWI0SuPMaV3nWvEruDCaZR4n28lJFjCs WLwUYO6BcEyAMhmCd5EZBdo= X-Google-Smtp-Source: ABdhPJw85+yNtSabfjgwkvFbJDIRthpzw0WSDu6VqLH7zm9AqoDDg1bM3GWjJDCo1Z1NucRl9r0mzw== X-Received: by 2002:a17:90b:3882:: with SMTP id mu2mr9227352pjb.29.1602172475033; Thu, 08 Oct 2020 08:54:35 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.54.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:54:34 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 043/117] iwlwifi: set DEBUGFS_READ_WRITE_FILE_OPS.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:55 +0000 Message-Id: <20201008155209.18025-43-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 712b6cf57a53 ("iwlwifi: Add debugfs to iwl core") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c b/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c index 41d969b46bae..a1022987eccf 100644 --- a/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c +++ b/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c @@ -52,6 +52,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = { \ .read = iwl_dbgfs_##name##_read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ }; static ssize_t iwl_dbgfs_sram_read(struct file *file, From patchwork Thu Oct 8 15:50:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823679 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9E13C46466 for ; Thu, 8 Oct 2020 15:54:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 46818217BA for ; Thu, 8 Oct 2020 15:54:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nzVLfs1k" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731615AbgJHPyk (ORCPT ); Thu, 8 Oct 2020 11:54:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731377AbgJHPyi (ORCPT ); Thu, 8 Oct 2020 11:54:38 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A555C061755; Thu, 8 Oct 2020 08:54:38 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id o25so4676731pgm.0; Thu, 08 Oct 2020 08:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6EzXv2Zt7KX6g1F168WjpOKFjasZcuS0dW6h2mDBi00=; b=nzVLfs1kRqgqAPUx/KO3E1IpwrQYvhqSdqUH0jHN2PieGBkFTI6Tt0nrXeEA1nfjev 9lY6+AtgIZQ8PRpRDAmhuSSg0VeYtVq8Jnpgn+4RjNdh5poyCxyiIL+6HqU9keN6Q6sA 4PJio1FTdSmD6wPKoj5ZylejtER06TVkYehC563fY6g+4c2Y1xsTy4ak3so77KCfn02l 07SK1ot5QUqec+M1ti2/IWBTVvkmRZVxnZSQLHsK9ToJhLXcK96EPA65LSQ8CUf1Z4FP bfLdt0xTC1T20XUmdhfPlE/gqCZYXDU04WKFMCAdJ5S1Rz7DVUDUyK/Ekqc8MDeOFyei r30A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6EzXv2Zt7KX6g1F168WjpOKFjasZcuS0dW6h2mDBi00=; b=rv3UCZrzL+xIYCaF7FXt3DXyrTxyE2cmgZDpdZj3p5SZcS05HwwPsuloWQSO9GQ8kl oi4x9G+DTOLpSM6jdzGjQGMSlkx+LM6hQP+iZszf1w1/DKRKLDhCSGAGV3Z1zpEdeTt9 FaAmjyvZC4qdrHZOZUIUc5EVr12CK93Pr/Y7ZtGY3F9od7XjHrNZ5wZJWAfavchNEe4G bM0K3QvU7kjd/CYzilUTJC2klMo6/R8IYi6iK5FD9papGRNuZBa6ADdgYGxbzoLGxs7p 7vCniPakZ3XinwES4icfdb/FDEdOnt3YyVfHMhSm0gPST86vE/V7N2CK6V10z3t+XLXU oF7A== X-Gm-Message-State: AOAM532zY4AVe7fFLN5p1ykoZnOhtKCS6mxvf4AXh0bwON/7aN14dCiR 5rh4Km/CztUKhPTJ3iuVzMU= X-Google-Smtp-Source: ABdhPJxm9VAS5OD6RtDgOVcupMfvMW7FvB8noSe+x7mWZGDnk64X+2Kg5WiiOM6grLxbHB7Sm8Odyg== X-Received: by 2002:a17:90b:8c:: with SMTP id bb12mr5439906pjb.48.1602172478008; Thu, 08 Oct 2020 08:54:38 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.54.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:54:37 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 044/117] iwlwifi: set rs_sta_dbgfs_scale_table_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:56 +0000 Message-Id: <20201008155209.18025-44-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 8ca151b568b6 ("iwlwifi: add the MVM driver") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlwifi/mvm/rs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rs.c b/drivers/net/wireless/intel/iwlwifi/mvm/rs.c index 86b2ebb5d5fb..97289236f2e1 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/rs.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/rs.c @@ -3903,6 +3903,7 @@ static const struct file_operations rs_sta_dbgfs_scale_table_ops = { .read = rs_sta_dbgfs_scale_table_read, .open = simple_open, .llseek = default_llseek, + .owner = THIS_MODULE, }; static ssize_t rs_sta_dbgfs_stats_table_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) From patchwork Thu Oct 8 15:50:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823681 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A985AC4363A for ; Thu, 8 Oct 2020 15:54:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5736C20B1F for ; Thu, 8 Oct 2020 15:54:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Z2q2XVM2" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731636AbgJHPyu (ORCPT ); Thu, 8 Oct 2020 11:54:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731616AbgJHPym (ORCPT ); Thu, 8 Oct 2020 11:54:42 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55857C0613D2; Thu, 8 Oct 2020 08:54:42 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id x13so1717427pfa.9; Thu, 08 Oct 2020 08:54:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bDXcWG42L1DQJJEQBNag+HEwRQGmNYoD8z2OOioRgrE=; b=Z2q2XVM2vVN1dIoSaBEL0u7UmpvCcjx5H/k+aaBLZ3e/C5oCxwux86qXWflH+O7zBE iDmYrYzaL3j2JZev1j/iJGqxA8h0oEEPGlk1z4CJPTUwfWjN9nWqlSijuDF7dbalCCZ6 c8mNhEpdvz/s2KUIgkx3O51JKbMnPMeO8qq3eZ30KcuVatMvEkNa6QGXNjG225mgTlIr MXpyChiZdSC5VI7MWtkkx2/6hjNPnkQV3YIqY0xPkQ5W4gcDY/boIR1yqZb3XXGLqs7l AFFku+t9/j2q0K9tFToC2GOBq1/JfMJYEVZpuyzcmHZnoucyZUqeITd1wod6vkJfDazr 8+0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bDXcWG42L1DQJJEQBNag+HEwRQGmNYoD8z2OOioRgrE=; b=ejSXCNI5YqftS0HdrIy8KHyFbOusIIOeBtQgqbqAfAZSAlL9+I68gubcTbTLOtlCkQ kLqX/E5wbb++/OtLoMd8HGXSLe0LaQGzjc4/JDuJrdshuYXXdBQzLVMDgNJ0bpVsxoqo xC2URYBk+Htr5C2n1zPbPZMKvva7n9IJ0K9u1v+/fAkteEVki3HcqE1CTkUXv0839ImT 5YKVQNXxBAUOUL1gANEqSdmbNLYfwLUopMei9Mehxp6w0M05ALUrMJC9Wg6L/yfj5Jzu Kz+6mbsPLscnGJIXfoiypVw/j8Tni59KbrGfceMgKLDoqNhhNkQh7aFjLH7BzL4jjn8p R7Cg== X-Gm-Message-State: AOAM531+mJNX15CHnD1QDbzfyuyv7VmUk2RPSkEic7KSq5pS3Gnxgd/4 OWr2I8UepEbPiIjuzrjyu/HI3IFhOL0= X-Google-Smtp-Source: ABdhPJzBh0fea8npME1X5JAtWjMml9m+QVa05+kzI02kEt9pd72UA/kaxJR/i+Rpfr2OAq5P3pJmFg== X-Received: by 2002:a63:7a55:: with SMTP id j21mr3567235pgn.218.1602172481030; Thu, 08 Oct 2020 08:54:41 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.54.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:54:40 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 045/117] iwlwifi: set rs_sta_dbgfs_stats_table_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:57 +0000 Message-Id: <20201008155209.18025-45-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 8ca151b568b6 ("iwlwifi: add the MVM driver") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlwifi/mvm/rs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rs.c b/drivers/net/wireless/intel/iwlwifi/mvm/rs.c index 97289236f2e1..5b81cb1bdd3b 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/rs.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/rs.c @@ -3951,6 +3951,7 @@ static const struct file_operations rs_sta_dbgfs_stats_table_ops = { .read = rs_sta_dbgfs_stats_table_read, .open = simple_open, .llseek = default_llseek, + .owner = THIS_MODULE, }; static ssize_t rs_sta_dbgfs_drv_tx_stats_read(struct file *file, From patchwork Thu Oct 8 15:50:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823683 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 425D7C46466 for ; Thu, 8 Oct 2020 15:54:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E0FD221924 for ; Thu, 8 Oct 2020 15:54:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="px6uTwoD" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731627AbgJHPys (ORCPT ); Thu, 8 Oct 2020 11:54:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731617AbgJHPyo (ORCPT ); Thu, 8 Oct 2020 11:54:44 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAF86C061755; Thu, 8 Oct 2020 08:54:44 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id b26so4346244pff.3; Thu, 08 Oct 2020 08:54:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/ZxWZQcmYThvumwflbvzb4h1bQFNFENF6qfUqfiTIuw=; b=px6uTwoDJ0AlBn7VC+wZ3Up84aK/oimCWtKPqLiIcpuhjzolQ8AVFqxjdljl7TFrPB TrcKKIJ8iiAtff8jiziSy97ya7l0+vPZHGZD7RO4bYdYdr/4aFu+1kHDsA+v3IyOPpbM cg7HDprveJOC1B+6O4RFX0tvY8VXJrPzcdJtJKyN410vPfrfUjymCO1qChSvIexH6FzX ufj0MPV8OUg4f5tHMZzw+f1MYVAIbbksNR7UCHTnN8Zmy6ZgNOKMp7Agcivkaeqo/kN/ BxJwESe+hC21pgT/hYcq0lx/jVGHadt/lBDmoVHYzCkEM+QTLT6wynxGQrIjmXL+ksEw 3f0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/ZxWZQcmYThvumwflbvzb4h1bQFNFENF6qfUqfiTIuw=; b=Hq5Pfn/IUR4c1Wv63+EDj31/F2fkhjv3KCI12zTDaJ7zcUB96St3q1LYsRDLXZIeGw /0nkKVqilJj4cof+LTXmqRhnqS64L1GhN/imLQjtNgau12pI1OKlZUAwSaDmvcJbIK+n Jyy09cziuV0tDYxnIyfPMXNfb7my6ir6uq2szdPsm4Ys2FJD1LYFO4dt6wsZIKwqvpHY P5IryKy4J+r90Xal5bh4J5uYs92v29CM4OwWZRN0vtF8zus2FG69fz/p/o4Z/syNJG51 UOs4b+XHVIluzWL93mllOzw5L3Vz4arCJjH3hZgYIt9JzwQ0DFN9F3Mu6uQlSeMnjvsz xUqg== X-Gm-Message-State: AOAM533tHW9IVdlh1fmdqzfm7ke274ipT2qIurQ5qm4wuU2+PMwzTOt6 kMNm09hK3MMh3w44RzNxk5U= X-Google-Smtp-Source: ABdhPJwlafIgb1IsavkqpfnlRY40td1DHhG0/tOjV2GX/P1po2VXIOmhVaS1GqI408ftUhXGw2KX8A== X-Received: by 2002:a17:90b:ed3:: with SMTP id gz19mr7487287pjb.53.1602172484303; Thu, 08 Oct 2020 08:54:44 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.54.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:54:43 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 046/117] iwlwifi: mvm: set rs_sta_dbgfs_drv_tx_stats_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:50:58 +0000 Message-Id: <20201008155209.18025-46-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 757cf23b4b4b ("iwlwifi: mvm: add per rate tx stats") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlwifi/mvm/rs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rs.c b/drivers/net/wireless/intel/iwlwifi/mvm/rs.c index 5b81cb1bdd3b..6fc2c841a873 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/rs.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/rs.c @@ -4042,6 +4042,7 @@ static const struct file_operations rs_sta_dbgfs_drv_tx_stats_ops = { .write = rs_sta_dbgfs_drv_tx_stats_write, .open = simple_open, .llseek = default_llseek, + .owner = THIS_MODULE, }; static ssize_t iwl_dbgfs_ss_force_read(struct file *file, From patchwork Thu Oct 8 15:50:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823685 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5C13C04EBE for ; Thu, 8 Oct 2020 15:54:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6B91F215A4 for ; Thu, 8 Oct 2020 15:54:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VCDjSCxF" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731365AbgJHPyz (ORCPT ); Thu, 8 Oct 2020 11:54:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731618AbgJHPys (ORCPT ); Thu, 8 Oct 2020 11:54:48 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA48DC061755; Thu, 8 Oct 2020 08:54:47 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id b19so2974961pld.0; Thu, 08 Oct 2020 08:54:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=I43T9rqU2Yy7/RstrGAR68lAPYaJ6wKQTNNf5yp9YhU=; b=VCDjSCxFXfUzcQca+YkqX+Kk2ruVmbHkDOsEhXriyzE7ik9bFFBLINnhN7m70CT001 vRjt0cr5TO5wwrm+sozcmacfFptRVbQR0Rs8XHzbBof2NnLa0cTVYGVLDdgp91jfwgpb Z+xEZHOKQM91iJEeYe2ntLNMrjK+/POUqHnLMLymcHEqUbA6fHOtPUpk7Ve03xO8M4g4 X55iHHeMuNZrv8bfwY48WIrPm8snF075oB5s53MYhIkY50Pv7A5/lt6i1gW2hbrj6Phf Fwmsqm//RIKy0DKNgBfXZtS2rg2saaz92EGYZqZDjpViZVuMQ8shWl6uSZjiZarLBUrJ FQ1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=I43T9rqU2Yy7/RstrGAR68lAPYaJ6wKQTNNf5yp9YhU=; b=XH1+deSjic2MgRJzep8iahECsWJVzH53mhXYBoRqmokjVtZAerSSzgOKpXzZBlhwb+ 5o4kp2Yk77Hz0p1YrZzG7l8WLgzFkLBoT9AOdplbdA0dCMzyFwoWRidYxghnYAamBkoP oLa6sAJsUGQloWiTeHUJAZI3Bh4Z1B+DrQS4Lpd2EpCtyo0AblLuFBmTVq2VAOLpjo+K wzusSBtAbKsxUXlM8WZDqhrbsh4VNa0B7UlWUzwD60N64RnvsijRBNfrettn43FdKNLD me2cEqsqZ+XT2Rftd8uoQZ9TEQ9g7KuuXSkftVFW7f6ZipzFnFerjHTQicNGy3g+L+Zb ir9Q== X-Gm-Message-State: AOAM531grpAygVkcf/3Ha0uzstxUr8DhsOn3uMhH3272CWJ7drgrlTVg nn2YkJDSRx0ascmTP90q4oU= X-Google-Smtp-Source: ABdhPJzFkGTvCqd3V3FFyUoVKSLilk86qLjgbvjmVGu5I57n65M1TeVSVldCa3PvNjuE0LxxIHLfXw== X-Received: by 2002:a17:902:ab89:b029:d3:9c6b:9d9a with SMTP id f9-20020a170902ab89b02900d39c6b9d9amr8065376plr.58.1602172487448; Thu, 08 Oct 2020 08:54:47 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.54.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:54:46 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 047/117] iwlwifi: mvm: set .owner to THIS_MODULE in debugfs.h Date: Thu, 8 Oct 2020 15:50:59 +0000 Message-Id: <20201008155209.18025-47-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 8ca151b568b6 ("iwlwifi: add the MVM driver") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlwifi/mvm/debugfs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.h b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.h index a83d252c0602..5bf4f7801b83 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.h +++ b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.h @@ -63,6 +63,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = { \ .read = iwl_dbgfs_##name##_read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ } #define MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \ @@ -87,6 +88,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = { \ .read = iwl_dbgfs_##name##_read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ }; #define _MVM_DEBUGFS_WRITE_FILE_OPS(name, buflen, argtype) \ @@ -95,4 +97,5 @@ static const struct file_operations iwl_dbgfs_##name##_ops = { \ .write = _iwl_dbgfs_##name##_write, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ }; From patchwork Thu Oct 8 15:51:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823731 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B718C04EBE for ; Thu, 8 Oct 2020 15:55:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 42BBE215A4 for ; Thu, 8 Oct 2020 15:55:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="flb3blqz" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731675AbgJHPzJ (ORCPT ); Thu, 8 Oct 2020 11:55:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730546AbgJHPyv (ORCPT ); Thu, 8 Oct 2020 11:54:51 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EA5DC061755; Thu, 8 Oct 2020 08:54:51 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id n9so4643328pgf.9; Thu, 08 Oct 2020 08:54:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=I67jtUWj4lQ6MYmKWTK3k4EslMrchiY8PwIogsFQAm8=; b=flb3blqzo+eiFc/JJwU8SXNLlQ4ORpuqW8vmh12CZQ8as3U1xpH34jEjj5JCv02f23 QQpaMMby+NE4pzAEVQ8AjV6LSi/W8XelRS2LGbcOIOewp8+ghvOpJPoX46ZThHgXsoz+ xaKaKS9llY47HqywBgcpln3+RnG6ChsR/DVX2ZnIGlsROp95nLCREMWtt+IN7Z5T8J0q +0+ZShUwFLzseLbZUR9fqY3oOAnu6m5lYiX0NOSsB0UbkHD5LjaLROlNdjrHElmp6eAG CitlCjABYrRua14AbuyH9S2fhCBFZ7VD1yFUiHjGnwvuNXjTezEyFJgln//DfFtKoZlk 4HnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=I67jtUWj4lQ6MYmKWTK3k4EslMrchiY8PwIogsFQAm8=; b=bMjWf5mfr+vnUpkyJTT7wVqUTNJfVjMcyHglPHwPfnp5A2JEa1WRN/xIew56QQbYiJ 2RKs8bZAyB0DQjfolbUsYt7mgQM/6+wKEsyZERlMfc7Qjd7a7tuae87dlJjXKMrviZQa /MjiEW3gswYSiobAWj7Zh7mKOkBtW+G13oTdeka7AvnpTjqetZFG9VVCT6l4q2rC5+bZ lK+BlzxGDiD+P5acgW77pkm7IaAMNAAWD/A/ajg6RtwBqhF9ClhRAflPwX1xBtZv3a8c iIHeN/xcRtMuhCuddIeBGdn6IfaOK8Gc/OiGGI0+9dr0cu2g/pzGwonYDAQg9Yo9zZba oNNw== X-Gm-Message-State: AOAM533IBoIb1S91GB8ao6qtk6dRz3VQxaiFFPWJFUzgVP3Xj+f/dKSE FkLdvpoFKVQCxx8GklffuAo= X-Google-Smtp-Source: ABdhPJymHPTv4TpZLXvBvwb0Fb+GZUU563h5UpfsusYFzBPHVLNC8P1tCM75H5S0SHKMrajyd4IWtw== X-Received: by 2002:a63:f015:: with SMTP id k21mr8056317pgh.422.1602172490991; Thu, 08 Oct 2020 08:54:50 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.54.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:54:49 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 048/117] iwlwifi: mvm: set iwl_dbgfs_mem_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:00 +0000 Message-Id: <20201008155209.18025-48-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 2b55f43f8e47 ("iwlwifi: mvm: Add mem debugfs entry") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c index 8fae7e707374..3bfa91b4cba9 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c @@ -1981,6 +1981,7 @@ static const struct file_operations iwl_dbgfs_mem_ops = { .write = iwl_dbgfs_mem_write, .open = simple_open, .llseek = default_llseek, + .owner = THIS_MODULE, }; void iwl_mvm_sta_add_debugfs(struct ieee80211_hw *hw, From patchwork Thu Oct 8 15:51:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823691 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D58ABC4363A for ; Thu, 8 Oct 2020 15:54:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7E947215A4 for ; Thu, 8 Oct 2020 15:54:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nQXxdK74" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731655AbgJHPy6 (ORCPT ); Thu, 8 Oct 2020 11:54:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731377AbgJHPyy (ORCPT ); Thu, 8 Oct 2020 11:54:54 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FA97C0613D2; Thu, 8 Oct 2020 08:54:54 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id g10so4335717pfc.8; Thu, 08 Oct 2020 08:54:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DR+pfHfdMhhdSmcJQNSIofIteoVJcDuhkAYRZpnEQmY=; b=nQXxdK74BIm7QpSErfFTshyRYqfESA8pT+naAwBkTDrODxRf7KfNYX/lqPnJaW5t61 jV+F5TraOKJBOqLZYQHhXy9kFEEQsGa1xIBzV0OejbUGXKntq9I9BQ7vxig/O8GG6x7T w6wFW8uv3bzgCGMKsfZ0kWuLgvDloPzb5VKYBrGcDefS2Wv1wb6TN7v9s0HMGcvp2sw5 tIgZwVIvMikV0z7tB2nwbCbeRXCeURExcnpGxkc7E3RfNYBEK+oj+JK9JFacimNx+ao1 FKDkK3llQqa/mIiIUcmYWsvxKl1dUGH79W7BZnRN4MJWOxz0YauYRxMQXMcEDyYBD0xY 8dQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DR+pfHfdMhhdSmcJQNSIofIteoVJcDuhkAYRZpnEQmY=; b=JAIHHg2FavvgTkz6mu2kxovaiHC/qsCsvPvFPF3F64wcW8bVNWYx7nbLgMINiSMhI4 cSuPCmogfpBGNWaLvhGfPpWzB6hrQkQE+2WdbECK15XZBK+NE7okV9sSUjNh5F1ViaeJ z5z2tSzRhDeDre1kZA90LPyewkh7hQXLTDODH87zhmJV0tMfNjjtXVy+eEIf9eeyfvt6 1/0xn2dTsKboD07o4gUhccjfx7LEzrd5IdS2vz4WCL5Tz03irryDIgnfjKPOy2Rv81C2 fu1Cdjri40+G22BLjzbUh4NUNPMTdaEnvkfCD0vC+HildblZ9F64uSD/g+6Drba4rkwb zkdQ== X-Gm-Message-State: AOAM5328oRd2nSXalYu/yncpRINnsu7FhYjrOzzQdFtKW1t2+vPNGlx3 w0f/rRRhbWDW9uic2hr73Uo= X-Google-Smtp-Source: ABdhPJzxTV1dSsxPfjfISsftArC1aH0zRY7a8pR10BotXiZlJqW8zXt7QCNfbT+w45SYb8OZHSDQUg== X-Received: by 2002:a63:4e48:: with SMTP id o8mr7872574pgl.90.1602172494164; Thu, 08 Oct 2020 08:54:54 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.54.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:54:53 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 049/117] iwlwifi: runtime: set _FWRT_DEBUGFS_READ_FILE_OPS.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:01 +0000 Message-Id: <20201008155209.18025-49-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 93b167c13a3a ("iwlwifi: runtime: sync FW and host clocks for logs") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlwifi/fw/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlwifi/fw/debugfs.c b/drivers/net/wireless/intel/iwlwifi/fw/debugfs.c index 267ad4eddb5c..c0edf6fb3760 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/debugfs.c +++ b/drivers/net/wireless/intel/iwlwifi/fw/debugfs.c @@ -122,6 +122,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = { \ .open = _iwl_dbgfs_##name##_open, \ .llseek = generic_file_llseek, \ .release = _iwl_dbgfs_release, \ + .owner = THIS_MODULE, \ } #define FWRT_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \ From patchwork Thu Oct 8 15:51:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823693 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3E9CC4363A for ; Thu, 8 Oct 2020 15:55:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A9297215A4 for ; Thu, 8 Oct 2020 15:55:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UdXkihan" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731664AbgJHPzC (ORCPT ); Thu, 8 Oct 2020 11:55:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731648AbgJHPy5 (ORCPT ); Thu, 8 Oct 2020 11:54:57 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE5C8C061755; Thu, 8 Oct 2020 08:54:57 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id a200so4325757pfa.10; Thu, 08 Oct 2020 08:54:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=uFx8Moi4i7WVgdUfl/NrupmbpWugcIJs+bvy0ZBk4bs=; b=UdXkihanuIU5WhI0tdDk7eOZpPfBcKw9VB8hBv+xe/XTCU6FoHte6AXLpz0Gu1tFtG 0v8GxestCC9Lts4khBW/a3qWwbH/rc1pBiPJUq4/oEIAFXOATSyGKNv9oj78Q4YnOziS T2QaVL+HwkRuuIEZm7kQ+NN8RtGJ9foNChZ6wC2UYAN05mhg1AOJPD6DxNywWqxFeFDC mzfWT99gSBWPyV75nQ82HyZWHfkXnKipG1RmXClGcranN9dwGeHNN95xcY+EOYixQBN0 pSpd/I2FYC4BzBPg7ceaFFVPtfPlMddY4zBQIY9p7RHBfmcNydDEuROmm4tYYbAJdsmN q2ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=uFx8Moi4i7WVgdUfl/NrupmbpWugcIJs+bvy0ZBk4bs=; b=S7nXVmcB/2m7M+Sim1T00q3tTM1Jy3FHOJmNy3JJd2OxbQrvZw9WsGwfaKDoxQPVmT MwX0Ebixx3ywZWUqGZ34CaRj9NORGXRCrpntzqYMPubKz2OV0H4oL5u5MmKrPdtNH06w B+onPW//7T/UDNXTRhOmDOAETzDPH4oD/a2nwvoo+5gm4UQ2KfL4SdJAJVOW3fiAhCnc P6OHDDQKJFc39Xcanodf7ifyWN+3oDqjT4TODGd4+fjZ55kWqk1lqo1pDHlQPE11KiBC RRdmXzcFVo9F4dgZ33AT4Hg9j1XvAbdezoZUX4pFtzplE9bf6YbZBMVU2IbRh0lgMI9e NXdw== X-Gm-Message-State: AOAM531m+9/sO+4bcMKevEzXQuwRvTwfty78Dg1vMRYINqb0LGIvsH9r v16+g1xyu/2pJsfg2VFiAsg= X-Google-Smtp-Source: ABdhPJy8G0mYcOAWPJqE77rng+1IcMUDZQ2ACQPy0IA8RSAACUsu4zIiK7kV9fkOAibsdtlz0ZcxGw== X-Received: by 2002:a17:90a:1702:: with SMTP id z2mr8979835pjd.88.1602172497430; Thu, 08 Oct 2020 08:54:57 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.54.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:54:56 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 050/117] iwlwifi: runtime: set _FWRT_DEBUGFS_READ_WRITE_FILE_OPS.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:02 +0000 Message-Id: <20201008155209.18025-50-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 93b167c13a3a ("iwlwifi: runtime: sync FW and host clocks for logs") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlwifi/fw/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlwifi/fw/debugfs.c b/drivers/net/wireless/intel/iwlwifi/fw/debugfs.c index c0edf6fb3760..d99ed6b2f781 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/debugfs.c +++ b/drivers/net/wireless/intel/iwlwifi/fw/debugfs.c @@ -151,6 +151,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = { \ .open = _iwl_dbgfs_##name##_open, \ .llseek = generic_file_llseek, \ .release = _iwl_dbgfs_release, \ + .owner = THIS_MODULE, \ } #define _FWRT_DEBUGFS_WRITE_FILE_OPS(name, buflen, argtype) \ From patchwork Thu Oct 8 15:51:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823755 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1682C04EBE for ; Thu, 8 Oct 2020 15:55:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 98711215A4 for ; Thu, 8 Oct 2020 15:55:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NMw3Oqpx" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731757AbgJHPzi (ORCPT ); Thu, 8 Oct 2020 11:55:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731661AbgJHPzA (ORCPT ); Thu, 8 Oct 2020 11:55:00 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC986C061755; Thu, 8 Oct 2020 08:55:00 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id k8so4348607pfk.2; Thu, 08 Oct 2020 08:55:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZIr90SB4JyXvEm29mi4WS7PZx/zmULAaypR4P98y8xg=; b=NMw3OqpxXznTMO/QnXMmVIadDoYeMfuiP0dQEGaTEHmKuIgOj0v4pz1r10dPFwcugv ZpetOYIIB5jqaXiQ0JYBfKih7BNIjdOLPY0HGwA4MMu9ojvzzlnrmEK4GhRRzC+ocW8D 8nhZu37r5cw0Jbwn2e/kUTWJzKjWN19muUiWRgSSm2xYQq37LwhXA5JjjvQULlyCfqbJ rgahj+ptYnilnPcPXx4eX+twfjRXy2NprRBOw6gjp0j6oMLyq+wjS+4NrGxTqQ2Iy1Rg vpqnwgEua4fl0eavi/UWe85n3w2blpvU8u2VBGXfPa81eaMkB4l/F47ScxDPauID1zwh tm4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZIr90SB4JyXvEm29mi4WS7PZx/zmULAaypR4P98y8xg=; b=Ql38rGuJxUuwcvytQZGTfqxdA6gjo6XFgZhZDV5vWj30rQmc9hqhPl18wUgvNNV7es 2e96VsJzltduHsFa0ds4mGsYhjVtfTStYl7ucdY85g4A2EUn73PZMe2z/R7XdzPc+mOn DyK/xqn+lgHpBJQjkJUEoqUeJi1VLE5EB1XI1oggCxKj7b/zS9K3ecRVSH0XWPNIfTRJ 2T64ZRGQS4TSkyNSxakpza7tCjp7xvH0OOaHTmJ66unfR8REgwns17XCKD5cEZ245nUb 5atRBorMEtBWSTBSZ+ROIv7QKJ5wKcqbQrNtSnSlUwr+Lv8quy+u6SpIqMZyVcba5Fn/ 4VNg== X-Gm-Message-State: AOAM532ArsVGgRY/g3f9GTzJhglAhVMKKio6rXbFmKG5Cx6m5qS4sG8Y ZLc1ctmG+HD3I5+UryLbk7Q= X-Google-Smtp-Source: ABdhPJx/NmILHvpIE1XSkuf3cic9pyDSMk9sZTmPB21X6JXyodTkJjhsAv3Rd0xYKmrcsHg4MiaVfQ== X-Received: by 2002:a17:90a:4f0f:: with SMTP id p15mr9134177pjh.10.1602172500472; Thu, 08 Oct 2020 08:55:00 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.54.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:54:59 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 051/117] iwlwifi: runtime: set _FWRT_DEBUGFS_WRITE_FILE_OPS.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:03 +0000 Message-Id: <20201008155209.18025-51-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 93b167c13a3a ("iwlwifi: runtime: sync FW and host clocks for logs") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlwifi/fw/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlwifi/fw/debugfs.c b/drivers/net/wireless/intel/iwlwifi/fw/debugfs.c index d99ed6b2f781..5f41c8587ac6 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/debugfs.c +++ b/drivers/net/wireless/intel/iwlwifi/fw/debugfs.c @@ -162,6 +162,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = { \ .open = _iwl_dbgfs_##name##_open, \ .llseek = generic_file_llseek, \ .release = _iwl_dbgfs_release, \ + .owner = THIS_MODULE, \ } #define FWRT_DEBUGFS_READ_FILE_OPS(name, bufsz) \ From patchwork Thu Oct 8 15:51:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823757 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E19BC4363C for ; Thu, 8 Oct 2020 15:55:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D5F72206F7 for ; Thu, 8 Oct 2020 15:55:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eGf2tbX7" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731753AbgJHPzh (ORCPT ); Thu, 8 Oct 2020 11:55:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731648AbgJHPzE (ORCPT ); Thu, 8 Oct 2020 11:55:04 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5904C0613D3; Thu, 8 Oct 2020 08:55:03 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id o25so4677748pgm.0; Thu, 08 Oct 2020 08:55:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Ca7kCfByCTJZS86pIaQXnoWI1vjQEzd90v0zOCj5y78=; b=eGf2tbX7VuwVzfsGOOfc2HwDBFFpYfg7e4BdXwCIZdtzN3zDwKeSkkiiItygNJs/PM g0x+/9l+sqnyAGnUuAlt9l0e8SiV1x2/lbT+QchRGM2+BgZKLG81H+IeCYGoW/8nn7z5 3fhFagK0Dg5V53sDYKWAzDmQlBlOVfREH/RwwdLU65QgSBT1gFuRPAkrTN2L8498apLU VeqgMW4UG+SsE47/LJ0FGRhDXQ5jdrg9TiULOFxL/yhwDFs0WvLfTEWKBMHPVas8Ialc jzmCpkDxkANtQmAepH52JwpJ2/XayxjdVD5EwBoWx56/mB2bPrKtBwfTCE1XLoaUABYI mxfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Ca7kCfByCTJZS86pIaQXnoWI1vjQEzd90v0zOCj5y78=; b=MxgzWfsauDvAhaH6d2wm6XHXgLLIZxL94kU2C8cOi4c1flg054gRzizXsENjkRsPqG qA+o2/zLwMWiqCpYKOfL77sa4THZ+mRnGitNzHf/l0j1X7iap4LzySVx72PxOPJtlvFn HFFImkE7HaYLuC3egdjCvtRruX2y/dWYJR/NGFkrdXkgwaOcIbtrtLyN0rFZ+Mi+GhjL XsZpFou99cG+hMManhpSjdacnJREUWqvA6XyfRxaeinLTmcMlFvfk9iEtlhdEBJ8knku GvyiHG/nRSmGgMuGM/1iNr2PXlOkPlB7gF9LsarNi3ugSnKCN6RkA54PXN+TWYR59BnD IdiA== X-Gm-Message-State: AOAM5306VgRv39bClO79rkLzv4hhLcdiNVlepqgPvnnshFYLq1vptw1f vqF0hB/BzrRxUX564oGd6RA= X-Google-Smtp-Source: ABdhPJwmsiqnxFE3xKHM4Z67usj8nyWJL9n2is6V3XD5i9QKKAnUf0Cs1F1Np0QwbMzMgmGKBw86ag== X-Received: by 2002:a17:90b:118a:: with SMTP id gk10mr8418460pjb.218.1602172503445; Thu, 08 Oct 2020 08:55:03 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.55.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:55:02 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 052/117] iwlwifi: set DEBUGFS_READ_FILE_OPS.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:04 +0000 Message-Id: <20201008155209.18025-52-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: be663ab67077 ("iwlwifi: split the drivers for agn and legacy devices 3945/4965") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlegacy/debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlegacy/debug.c b/drivers/net/wireless/intel/iwlegacy/debug.c index 4f741b305d96..03571066f580 100644 --- a/drivers/net/wireless/intel/iwlegacy/debug.c +++ b/drivers/net/wireless/intel/iwlegacy/debug.c @@ -136,6 +136,7 @@ static const struct file_operations il_dbgfs_##name##_ops = { \ .read = il_dbgfs_##name##_read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ }; #define DEBUGFS_WRITE_FILE_OPS(name) \ From patchwork Thu Oct 8 15:51:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823743 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B2CFC4363A for ; Thu, 8 Oct 2020 15:55:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 293AF20B1F for ; Thu, 8 Oct 2020 15:55:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aeyiHIxH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730770AbgJHPzW (ORCPT ); Thu, 8 Oct 2020 11:55:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731666AbgJHPzG (ORCPT ); Thu, 8 Oct 2020 11:55:06 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2A71C0613D4; Thu, 8 Oct 2020 08:55:06 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id h6so4660526pgk.4; Thu, 08 Oct 2020 08:55:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nO/N7m1byIHurxzBJe3w3+nfoW89mKBEsALmOm5a94w=; b=aeyiHIxHqOShtTUx1q6W64L/nOkHPtysQ6OElHFZ5E/bCsHnEiNrCWVtpNWDBJEQ// 3qsYGFpRN8urIvG1qs6EwT27Mws9hmynobpw8+A12SoxjiBtNhmiK7rnr5oUnVcHm5rG akWkMhN3N/QIAlmA2hyS2ahkyy+pZNXzpOA1wvXi7CjBAPrYCLcQfbhL4e1yTMGyljmA 7i6tscNcHBuZ+UxKgWpwtwDRb0CTeWxqfTB6zJdgtsNQrJpl2Fg3XAdwKEALlB8IrmLa sH9KzKAF5AHpcqOMz4OGrfneK5pm6IfoBITya3EpBV/JS2OjuHIQKqda9Qe8sMaUmMD6 Hhbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nO/N7m1byIHurxzBJe3w3+nfoW89mKBEsALmOm5a94w=; b=i6LNiGGRCL5CC3sINcwJNe8OBzzPtpbmF9SMQXly1KkMyDnLAb2BaoF/BNFKl1j7Jh JSLUNSYDQP++LO25H6UgIuB+h+CNB/r2G37Lz+YR0IzvxUh2lI8o9xMhaPrNIiEHEIG1 8jiOBZ4yp6912rtwaA7CtF80yLEhemkZr4IBn5lSyof1RlPZ7aErFjGtMHzfkwObVnYU afipUPd5yDzD0lEzqSgQHGtOXqfNFnUcqGQcjAFufb7mCXapp/hS5pXGe0poYJEaooo4 O0VOEqIh75qnR8BkB3TJsf+nI1JHMbGgM1E+t5NqiuExq2zO3I5vIlpqIQ8uEm91CE9m XWdg== X-Gm-Message-State: AOAM533WiAjvw//d/3NF4C02Ykksu8+QlhrAwZUjDX99g1WpBDaP0/Nk 7Sf9RwKKg+fzCr9rv8GfvO8= X-Google-Smtp-Source: ABdhPJzXQ4jQB/g6gn38BgvK/iGz5C+8M8bjTL9bDx9laXPDnWnThplqcc/KObS4fBkcgHfWhjyC/Q== X-Received: by 2002:a63:5c07:: with SMTP id q7mr8170527pgb.222.1602172506343; Thu, 08 Oct 2020 08:55:06 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.55.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:55:05 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 053/117] iwlwifi: set DEBUGFS_WRITE_FILE_OPS.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:05 +0000 Message-Id: <20201008155209.18025-53-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: be663ab67077 ("iwlwifi: split the drivers for agn and legacy devices 3945/4965") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlegacy/debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlegacy/debug.c b/drivers/net/wireless/intel/iwlegacy/debug.c index 03571066f580..9813d4b507e5 100644 --- a/drivers/net/wireless/intel/iwlegacy/debug.c +++ b/drivers/net/wireless/intel/iwlegacy/debug.c @@ -145,6 +145,7 @@ static const struct file_operations il_dbgfs_##name##_ops = { \ .write = il_dbgfs_##name##_write, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ }; #define DEBUGFS_READ_WRITE_FILE_OPS(name) \ From patchwork Thu Oct 8 15:51:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823735 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E898C4363A for ; Thu, 8 Oct 2020 15:55:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F1F23215A4 for ; Thu, 8 Oct 2020 15:55:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mxJ63GYm" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731684AbgJHPzL (ORCPT ); Thu, 8 Oct 2020 11:55:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731665AbgJHPzJ (ORCPT ); Thu, 8 Oct 2020 11:55:09 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEA37C061755; Thu, 8 Oct 2020 08:55:09 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id o9so2950405plx.10; Thu, 08 Oct 2020 08:55:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yxvteaVfPmUIKMHl8/yTuLWj7C+G9vgr+RlBb+7YRLA=; b=mxJ63GYmaJzEVMsDiyXY9N680q9UJ78csi4Ncu2o/0n8hs6mYdtBzwkTkhgAYRZjHq V0PxRn7rMKjCvF1zLj+Q900nHEh3hXl2irMQobrVw4YphwvQdRqAaTBDqrnRKPoUjMm0 YGZpSyvFwVcdRgIQ5AhQ4VSkC354ELdAdwRnxA0pOg/6eQ3ZjmdqJ9YBD3s2u+bYaFDb 6/VVF1cbiH47zBCtqR6DzE6TXuWw9SZOBMaj46qwLukAOLx0nFJlzF2ivVqDypr6V05v 5xSQonYCQOsqQhtA14rdqa6yygDLA5z+WzYN7qA8QSaL+6rDpv9am6+YPpqZwy5CSctu RNZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yxvteaVfPmUIKMHl8/yTuLWj7C+G9vgr+RlBb+7YRLA=; b=D1pqe08oCoeH5fAHc2nXcD8FhMUWPjBaILzpkeONqQmZ7eKA6qoD90DkMnV0ans43Y J7crNoK7VIcNtJMkSJXE7E2DxEB5XoLKmKB7f80V5nucLoHz0m77is7g2ZK6AHFHtQE1 ExIxo1SnmuuilIKCphKhKhrRocZZad9NguaD8bH8AQOxbffZzGf2PVD9L6XNucUWfand M9VclI5ofaVDeKv8CRr29h3YLdlVrGZ0QQ8tE3TQ6pC+tgmXAAT0pRy8ARgjJUZI0Xa6 12MwQgSHsqeEi0CDz/N1SQ2hjmMPcYBItBEHzF935UhSrWtkesdMc5teLq6MZjQRB2ep +Whw== X-Gm-Message-State: AOAM532MRBMuoGqsNMFxg+aNH0LXgpsbKmOjh2rJeMl4QX5rIPpSNDRD yL1cuXTPW70GkOjzRDE+Uow= X-Google-Smtp-Source: ABdhPJzHtpA+rRTBdU86C9ERm99wm8xkR5rwdpqzE6J5SFc7sgavsscMdch7IOF0f6zqBcU0ZaemUA== X-Received: by 2002:a17:902:b946:b029:d2:8084:ea0 with SMTP id h6-20020a170902b946b02900d280840ea0mr8054247pls.25.1602172509318; Thu, 08 Oct 2020 08:55:09 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.55.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:55:08 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 054/117] iwlwifi: set DEBUGFS_READ_WRITE_FILE_OPS.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:06 +0000 Message-Id: <20201008155209.18025-54-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: be663ab67077 ("iwlwifi: split the drivers for agn and legacy devices 3945/4965") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlegacy/debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlegacy/debug.c b/drivers/net/wireless/intel/iwlegacy/debug.c index 9813d4b507e5..fcf5fd3c7364 100644 --- a/drivers/net/wireless/intel/iwlegacy/debug.c +++ b/drivers/net/wireless/intel/iwlegacy/debug.c @@ -156,6 +156,7 @@ static const struct file_operations il_dbgfs_##name##_ops = { \ .read = il_dbgfs_##name##_read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ }; static const char * From patchwork Thu Oct 8 15:51:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823739 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E720C4363A for ; Thu, 8 Oct 2020 15:55:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 16F72215A4 for ; Thu, 8 Oct 2020 15:55:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eM5CfMZY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731691AbgJHPzP (ORCPT ); Thu, 8 Oct 2020 11:55:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730114AbgJHPzN (ORCPT ); Thu, 8 Oct 2020 11:55:13 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3562C061755; Thu, 8 Oct 2020 08:55:12 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id x13so1718650pfa.9; Thu, 08 Oct 2020 08:55:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2lngko9sd4ZthONHIlR14GNg4E9vClJ67xyhcTzXBhM=; b=eM5CfMZY5sMGEuouVvWiVSxZY6yPwrH4cNVGnAZ1dkIk3yC1lSHejmHjoXRCn9zqXz LckedFBuO344pLMCn9AG0CREUTdWgO1g7WzzH8YGzKiynw8g9gOjHZc3fTsKR+oi4eKm wO2wg393yVTvlAMpxAJA8ZFiD8w5jNiBoHnmHRhmwfEpoevOvA9TaWBsdF7Kcw6pnAQA caAEIEF9yoUQpQ7XwAPmG/kHh+CLtfx92ACsXnvGRVWmzNkHk6mBH0aP1zkmUR7P478O HW7bEnO67UcX5a+jQVtlO8pOK8ONBLr1sb1MO3uNRX26Vj5MeRI7RRAtkT8feyoaGOck yXVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2lngko9sd4ZthONHIlR14GNg4E9vClJ67xyhcTzXBhM=; b=rPggKZRJftP8mKiO66ihJd4cN3v1azuF6QTLO8zPCcVxI9hDM+zQOicMTvy80XBMOE c+uEzhiWIHAygolsF67YIZHNQVa9oyhIk6gyrXOMIyV5fE57LFAuNc83+NcKfCkMDQ0y sKERstYlDFGJ0i8NnEO3mXgXmChHmRfwdML1UjvK8nZQkXvRgS8UcXmf0LG1Ez0mH/7F HhYDhMAvc/629Cv4ElFL+UKW9b41EB54sE6XfNx0jZc/+ld3bom3s2HviGzNSVOzGxRp Q5pH03p9ohNA5NvtPd1LZAAytUSN8sZZrBu7japfP/6n4sEfPjwbySPwG1Wcuc40G1qo VPUA== X-Gm-Message-State: AOAM531uT2Fx88Y+F7Q8qASMLKK3EMx4poOkm0m+ue925NuHIpZizpfo p305CiG4AZj4nudBmrdFzBA= X-Google-Smtp-Source: ABdhPJw61MfLzAFPBYvFafD8ao1D6fz5e8AstdYFNPEBeIH0SIodhqC64tebcghodKUA8P5lNunX8Q== X-Received: by 2002:a05:6a00:8c5:b029:13e:ce2c:88bd with SMTP id s5-20020a056a0008c5b029013ece2c88bdmr8388138pfu.0.1602172512340; Thu, 08 Oct 2020 08:55:12 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.55.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:55:11 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 055/117] iwlwifi: set rs_sta_dbgfs_stats_table_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:07 +0000 Message-Id: <20201008155209.18025-55-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 4bc85c1324aa ("Revert "iwlwifi: split the drivers for agn and legacy devices 3945/4965"") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlegacy/3945-rs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlegacy/3945-rs.c b/drivers/net/wireless/intel/iwlegacy/3945-rs.c index 0af9e997c9f6..f98297541184 100644 --- a/drivers/net/wireless/intel/iwlegacy/3945-rs.c +++ b/drivers/net/wireless/intel/iwlegacy/3945-rs.c @@ -836,6 +836,7 @@ static const struct file_operations rs_sta_dbgfs_stats_table_ops = { .read = il3945_sta_dbgfs_stats_table_read, .open = simple_open, .llseek = default_llseek, + .owner = THIS_MODULE, }; static void From patchwork Thu Oct 8 15:51:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823749 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F65CC4363C for ; Thu, 8 Oct 2020 15:55:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 24401206F7 for ; Thu, 8 Oct 2020 15:55:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HbTSmACk" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731746AbgJHPzg (ORCPT ); Thu, 8 Oct 2020 11:55:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731693AbgJHPzP (ORCPT ); Thu, 8 Oct 2020 11:55:15 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD066C061755; Thu, 8 Oct 2020 08:55:15 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id p11so2967376pld.5; Thu, 08 Oct 2020 08:55:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PjMPUzslxCGQDyXvyuPHPYzPztdfah40fjrfibkkXbQ=; b=HbTSmACkNvEi1Ke+LLQfy91/CaM3puNEeRbZb4nB/5sVVVBfrY+vo6VhL5mGgzX+b7 jk8t1AfFRZOOWyAToBp2ljP4bMEyt2409vxzj0PtL01IeLHdUAq6J6EIrR+RF2vYSXBB s3OQNTbzRMuN1rh3VMztU3yo9H77mbSB4S7LhYeVI4AtF+rQUe3CAsR2aQF7/XQGvW2a aQ+ckaC8Zn3l7oaiT+qQjs2TcfIwCgA7PUQTgBl5QLk5/MJ+u5h8pqAeEFsZDySXaKwW oQ3Ci1ss+NBJpsTYo2W5watoyrcJnzjZFG1gZNSql8Pa/zuJpZVmuOG6EQK86DRLmK+5 FryQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PjMPUzslxCGQDyXvyuPHPYzPztdfah40fjrfibkkXbQ=; b=J4LEY6uXb4Cjhyii6MpMNR03wMsggpl+pxmd53ZQbsNNYs3Gt0m3vRefn1915CVkbh hCwmCs5e+q99QNJWXKqvi5utO+l//aTYEpT/t6D5wMYP9s1aFHGHkcIRR0mj/M8dkyNL Xktw3FyA0AGtCkIbfMmtRQOpa52csWXvpjCmAwClQNtJu7btnZ725X/EmBw4z3Zx5r8M NpXCEaOZbvq6SOkUfyH1Bg3Gh+kmz9ecBHmkDmcLWYjGqIs30jb49cnDm6gkcULPWyUD Sp6hANFt+Knoo8U2296t2byK/CpEvtL4tpSY0+WCC+qxnuKH17f5Fk8KxWJZb/ihmVF+ HLUg== X-Gm-Message-State: AOAM5304I6+m+4v9WkiSdK59QJWreEYgQbcm/E3B//PLxTaP7AT12rPW 3FRi4Kzri6rDvkm9OgvSLUQ= X-Google-Smtp-Source: ABdhPJwmcYmA3b1n3Az4gr2Z1T50VkAgeVR9zO2tao4hCrZ4YXQ2larX+shYnx7aZkx4cQeUrq6xbQ== X-Received: by 2002:a17:902:6a86:b029:d3:b2d4:4a6 with SMTP id n6-20020a1709026a86b02900d3b2d404a6mr7942678plk.73.1602172515303; Thu, 08 Oct 2020 08:55:15 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.55.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:55:14 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 056/117] iwlwifi: set rs_sta_dbgfs_scale_table_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:08 +0000 Message-Id: <20201008155209.18025-56-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: be663ab67077 ("iwlwifi: split the drivers for agn and legacy devices 3945/4965") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlegacy/4965-rs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlegacy/4965-rs.c b/drivers/net/wireless/intel/iwlegacy/4965-rs.c index 1f196665d21f..43fff3fd18e7 100644 --- a/drivers/net/wireless/intel/iwlegacy/4965-rs.c +++ b/drivers/net/wireless/intel/iwlegacy/4965-rs.c @@ -2669,6 +2669,7 @@ static const struct file_operations rs_sta_dbgfs_scale_table_ops = { .read = il4965_rs_sta_dbgfs_scale_table_read, .open = simple_open, .llseek = default_llseek, + .owner = THIS_MODULE, }; static ssize_t From patchwork Thu Oct 8 15:51:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823745 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD8A4C04EBE for ; Thu, 8 Oct 2020 15:55:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4678220B1F for ; Thu, 8 Oct 2020 15:55:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GefW8PYO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731736AbgJHPze (ORCPT ); Thu, 8 Oct 2020 11:55:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730114AbgJHPzS (ORCPT ); Thu, 8 Oct 2020 11:55:18 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A539EC0613D3; Thu, 8 Oct 2020 08:55:18 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id d23so2964708pll.7; Thu, 08 Oct 2020 08:55:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qCio2tJg2lTUTBkvGAUFb0+rsX4JAZvslEUHcVRdzr8=; b=GefW8PYO6D7RndDKqWCIMQJZPyBh3jNqq2i9EFUULs4DpDrb/VXpoSpG6fTFEA3+Mz vagsVvUzcEunxu/wHfswwhg1gh2tIFXeMLorxictWx0Ttjbgt5csAQ6fSAJ2bHWHgXUT TMh87r5lgNxDTjINA6ftNwvSIRX+IV3FnB6Zv5rCZX2Y5oenIeI9LlxvHWqdL2oR/CwU 4VqB0TvtI5VzzZPMhdMgPuYBppJ9atAMVRzWQzvURhPChOUevRwBCi16i1hYj4RHhE1N Vh/KFd0M3ygSOm+0lomvk2Q9KIUk/yblUbRYxc/gXuW6pXE+vzzAtEjATmJVkMRKJJWI MHyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qCio2tJg2lTUTBkvGAUFb0+rsX4JAZvslEUHcVRdzr8=; b=YkQDVOIYWQJsTXE38tt9jBHdbLJvwF/VEp62r7KDoZ2I+/bnNoHsdHwBG2MGrwrCU4 ZPLyYjtD4+PjVSYx4sGEmIOlWPekv2/8n5T7KJmyBIQkZ+bAljcRG5vttOtChehdnWJT Ay5tLtAUcXARZv18ADiVR7wP1iEJej8rlye6oUhLNCLg9VRBjULPv447wMxs2JS4Rahj hqdsN43HtsoIj+jloFR7UuUFAbrLwpoRPwVPerdUZvUd2s3404Fd/2WU4i5ByotJTrWf Byb9XV6kGovjXI6fXljjuXwOMYjpnpRJKzw3lhXMuvLNrOV9wXWTXA+br+9d4uO5dyss Wugw== X-Gm-Message-State: AOAM533Mb65NN7/MpGQ46y01FqsXYBRW6LVsPsvVhXppa7WIg+rxWfVt FaW2TpPnPECs37JF/rDlfFj4XOmDSoU= X-Google-Smtp-Source: ABdhPJy4LDME/81FJtjwtsrr2FaEi0X/a0wNFyCR7WyVrNqI0KP/PNroMzHkVqo7QRLUSbOuZsxrcw== X-Received: by 2002:a17:902:b592:b029:d3:8dc4:391e with SMTP id a18-20020a170902b592b02900d38dc4391emr8460545pls.76.1602172518244; Thu, 08 Oct 2020 08:55:18 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.55.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:55:17 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 057/117] iwlwifi: set rs_sta_dbgfs_stats_table_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:09 +0000 Message-Id: <20201008155209.18025-57-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: be663ab67077 ("iwlwifi: split the drivers for agn and legacy devices 3945/4965") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlegacy/4965-rs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlegacy/4965-rs.c b/drivers/net/wireless/intel/iwlegacy/4965-rs.c index 43fff3fd18e7..6592726235d4 100644 --- a/drivers/net/wireless/intel/iwlegacy/4965-rs.c +++ b/drivers/net/wireless/intel/iwlegacy/4965-rs.c @@ -2715,6 +2715,7 @@ static const struct file_operations rs_sta_dbgfs_stats_table_ops = { .read = il4965_rs_sta_dbgfs_stats_table_read, .open = simple_open, .llseek = default_llseek, + .owner = THIS_MODULE, }; static ssize_t From patchwork Thu Oct 8 15:51:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823741 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23354C04EBE for ; Thu, 8 Oct 2020 15:55:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C0CC220B1F for ; Thu, 8 Oct 2020 15:55:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="l2rFkQ+Z" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730652AbgJHPzX (ORCPT ); Thu, 8 Oct 2020 11:55:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731696AbgJHPzV (ORCPT ); Thu, 8 Oct 2020 11:55:21 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1FC8C061755; Thu, 8 Oct 2020 08:55:21 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id r10so4644049pgb.10; Thu, 08 Oct 2020 08:55:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LQvHmLfurWZzkIkTeRs/2Uiw+HtCPVHfX0BT7xx2ems=; b=l2rFkQ+ZoEJuL18HqLoc/B66Kkt0hs0KY77SVrIFUuSVbPDlXDiTaIQq6GFnkXA7ZB SbMtQ+sSgbGBKiTDqyX6gFnZ1JmnuZFn8rzJCOiE2h793wBrdILePkEqtuhsSFKqhk0y YqomUVWCIvu+lQ/VVoSvPpnkOqRSDsDodEDQ4RRN7Tf1jppFyPPCj9YbjryV/5nLOpS1 Qf+ZjD7yOrnTApjbBA8QCuDOWSb3Nsu6dQAspp7hxY+7I5L5KufE/suqps4AbvQdZJyH l1wtURQixZdSVNLaF1sf1/74X2G6DM20BeBHa2dzj/jAbfFIliY5+fSHzHnHqn26Byxn aJIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LQvHmLfurWZzkIkTeRs/2Uiw+HtCPVHfX0BT7xx2ems=; b=d2/6UoCIa0FIcOT4RQpnpbpHOGUYZukr4Uoxh6abDzzNqK7P2tVV35yW93FCO4Jw6h UIs5vrY2p8MFKqcwEqsJyaGuIgPhIuO8MPRLeu8+ubWuuWMpJcn+hOxYfw6I1H0LAEuP 4ZFlOCZ1MyhI3uEzDB4boc7ISYgkfCIpDR1g7GqCRmNqAGu1B9E+an2RFf2//A2IJeaf JAy8dgtlA/pvTh17/B0MMQIn4TeQPWVurZ4Nq9Yc1fSPXuNaTpNfdLzWd3Jx+YLW3XZz 3rBjwr0ynZiTLHLzXo7vt57uqspm4YZqvTugXmD1FWaFHkwI4vprYmHZfmEi8wSQDqWG xlUA== X-Gm-Message-State: AOAM531lrzJ6JAwpalCaQjpa/Ys5mgt+DYHhPvglp1a3Slx1huu8ZsEo k0xWt9OTVYfRJEEEsi8A5X0= X-Google-Smtp-Source: ABdhPJx2BrtSKiB6MEzRXlg5Bhn/LWFQZddJlKOp94nbWYgMLybFFlEIx+p85zPttj/SrfTtXsVe4Q== X-Received: by 2002:aa7:8f17:0:b029:152:349f:34df with SMTP id x23-20020aa78f170000b0290152349f34dfmr8440789pfr.54.1602172521320; Thu, 08 Oct 2020 08:55:21 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.55.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:55:20 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 058/117] iwlwifi: set rs_sta_dbgfs_rate_scale_data_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:10 +0000 Message-Id: <20201008155209.18025-58-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: be663ab67077 ("iwlwifi: split the drivers for agn and legacy devices 3945/4965") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlegacy/4965-rs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlegacy/4965-rs.c b/drivers/net/wireless/intel/iwlegacy/4965-rs.c index 6592726235d4..5e3a30d553dc 100644 --- a/drivers/net/wireless/intel/iwlegacy/4965-rs.c +++ b/drivers/net/wireless/intel/iwlegacy/4965-rs.c @@ -2744,6 +2744,7 @@ static const struct file_operations rs_sta_dbgfs_rate_scale_data_ops = { .read = il4965_rs_sta_dbgfs_rate_scale_data_read, .open = simple_open, .llseek = default_llseek, + .owner = THIS_MODULE, }; static void From patchwork Thu Oct 8 15:51:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824133 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E6CF7C433E2 for ; Thu, 8 Oct 2020 16:00:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 91B2C215A4 for ; Thu, 8 Oct 2020 16:00:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="reydX1Eh" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732079AbgJHQAR (ORCPT ); Thu, 8 Oct 2020 12:00:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730169AbgJHPzZ (ORCPT ); Thu, 8 Oct 2020 11:55:25 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 076BDC061755; Thu, 8 Oct 2020 08:55:25 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id o25so4678614pgm.0; Thu, 08 Oct 2020 08:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hnBhJK9M3cDN/3MrcX0Hb7CvhlHNqO5pN/DaNQb4/bk=; b=reydX1Ehm8V2GjhHZTyDwBBNzCJu5eg1905BNOIKcAdfwnpthErWa0fLDKl1N6PTD/ P+Mb9MA/VZXJe79g15havimgdU1JhdIarlWoBlNNQkAjagFQ8P9ypyxAz1zR2dKqYqjz Dz/HIrqr/hZRe+aKDP9NR1fyfx9Hi9cc0MqCRDnRmXhkUq/NGDZhzJ7ooiB4V94fd8k1 tJP7ZZke1pVGVvzokUSfUjOMgymBafiGg/3WydxpZ9BSLzWjXBzK+GhMJIG4zyPAJKM9 PEjlStHoV9NpAMfiHYKg1phVmZKRS2mnTVdTkXSiylSWhq0ZY1V6sLjjms4g0c9RtWQw Ypcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hnBhJK9M3cDN/3MrcX0Hb7CvhlHNqO5pN/DaNQb4/bk=; b=uO9vuBlX1RoQNTzaiagf0UyvyZjw4r5QcSXSYm3GRqg0G/3YSaUjP2gv0m1kCAqDyB dJjNQvEC2KD9JeqYAqx+uZ8TF1ph3AhS68rmDgDKfVVMcqep68y5jC4LKz3kfYZJRAQc c8Vf9OK0BBiQiLD2VmjNdKeN1DeH7XZ4Y6qxIqm64F7Hb9SsSakJnByNZqJTcsrf+kPv 06O4yxWzWCbfdf5P9+zu/fzpDxr5prnrj993tvVU4D4SV1lQPcvhXBBur3Flj2FmMa5t DwwnIE0cBBOhLbTkxb9GOdGT78XplOV7JhATXSt1V0RS5PKqUqVDjWwqyP9y8YsTZur9 FbRw== X-Gm-Message-State: AOAM531wMWhtshpCTlPbhpgvb4xcIunbheqd5wTg64fis2dFOA+rmhR3 2bHvufdFzRC7b8FNzm3ZIxg= X-Google-Smtp-Source: ABdhPJzUev43nfkPyclxRA0xCfNiWzK2Cx9ViQa9gloHWQIjjEMv5UwTt/zBsq3yqnslT4ptQGyZRw== X-Received: by 2002:a63:b18:: with SMTP id 24mr5529398pgl.214.1602172524620; Thu, 08 Oct 2020 08:55:24 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.55.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:55:23 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 059/117] iwlagn: set rs_sta_dbgfs_rate_scale_data_ops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:11 +0000 Message-Id: <20201008155209.18025-59-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 38167459da50 ("iwlagn: show current rate scale data in debugfs") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlwifi/dvm/rs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/rs.c b/drivers/net/wireless/intel/iwlwifi/dvm/rs.c index 4075cb53bc73..48b945594f4c 100644 --- a/drivers/net/wireless/intel/iwlwifi/dvm/rs.c +++ b/drivers/net/wireless/intel/iwlwifi/dvm/rs.c @@ -3243,6 +3243,7 @@ static const struct file_operations rs_sta_dbgfs_rate_scale_data_ops = { .read = rs_sta_dbgfs_rate_scale_data_read, .open = simple_open, .llseek = default_llseek, + .owner = THIS_MODULE, }; static void rs_add_debugfs(void *priv, void *priv_sta, From patchwork Thu Oct 8 15:51:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824135 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B350C49EBC for ; Thu, 8 Oct 2020 16:00:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AD588206F0 for ; Thu, 8 Oct 2020 16:00:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZYImLG5+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732053AbgJHQAP (ORCPT ); Thu, 8 Oct 2020 12:00:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730125AbgJHPz2 (ORCPT ); Thu, 8 Oct 2020 11:55:28 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E818C0613D2; Thu, 8 Oct 2020 08:55:28 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id r21so1299503pgj.5; Thu, 08 Oct 2020 08:55:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TfUnXUG3PUhqApMy8jE53GYrD9Oex4/RdhP1/16gmfE=; b=ZYImLG5+5+C1sfUKZSkazV3+y+TpfPnGsKOmRDNNMJCn1SuZzBkNk8FdksTjWjlJpv esb8Q0QPIatYGQJoMuO1QhzrfakKyviobX1WzGvMHd+WNAp+SzB23doIsa8NyrzEJtt8 stu9KdURk3dH6ROBHWmZDRPRhPUWTi8a3B0rrYRuD0tgjNqpb8iTsorC5tJwHbRWQRmC WhEarGHjR7CqiwUL7/A8LRpmT1VrH8apDJeotPtld/hQBfHA3RBFUKGFMEUUjzvWP2q2 n687GDhetGqMeYhzND82pc1rMRmqtgwKqpV2709F9Z48QO4NisIsufdp/KBV8HtpGibG KlQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TfUnXUG3PUhqApMy8jE53GYrD9Oex4/RdhP1/16gmfE=; b=DmGj4t6pb8x8OrVcnvc9l5D+TO7yv+7fL2LS+JaI7r4RmeyE439wIkvpoiB0jetCsd byR/ZF9DPRKcEvi1CFTDnWqcIWr+kbP6fpez0mfKwTT5UlWTyLTyh0mrLpBP9nTx7WX8 dmXRQHt+cCvfIPt03/Vhu+mR6bOxf9PlIuBwC/xlnzAru3NaFyamNBOvy/IcgIRYnW08 +IcmjjzDs4nf8PUQyww6gZJJsnFKwnXqY3VCrB4WAw3VCdy9b1LxoaH8T0VWn0bFCJG5 FKyS2leJ3YXx4ZyV+i6VxincorJXAf9UGiwD8FDkZ30PUa74CzcT1TiO6+TQTK1w6aSm Dmcg== X-Gm-Message-State: AOAM5313k+Q0/WdfEljxfcDVpCzQeXMOzOKCdZy8iHT9oCXKh7LfZRXI oQRe0n/g0v3+rFm4EULpD20= X-Google-Smtp-Source: ABdhPJzfraFxam50Tb9VcChkEHqtGSPNoRLUQQQGwpU5125vLkBSAtQn7yBwy9SxYFZZMB2rnb9isA== X-Received: by 2002:a63:5fcb:: with SMTP id t194mr3817538pgb.119.1602172527701; Thu, 08 Oct 2020 08:55:27 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.55.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:55:26 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 060/117] iwlagn: set DEBUGFS_READ_FILE_OPS.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:12 +0000 Message-Id: <20201008155209.18025-60-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 87e5666c0722 ("iwlagn: transport handler can register debugfs entries") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/trans.c b/drivers/net/wireless/intel/iwlwifi/pcie/trans.c index e5160d620868..e408a381c82b 100644 --- a/drivers/net/wireless/intel/iwlwifi/pcie/trans.c +++ b/drivers/net/wireless/intel/iwlwifi/pcie/trans.c @@ -2505,6 +2505,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = { \ .read = iwl_dbgfs_##name##_read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ }; #define DEBUGFS_WRITE_FILE_OPS(name) \ From patchwork Thu Oct 8 15:51:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824137 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 581A3C43457 for ; Thu, 8 Oct 2020 16:00:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E551B20B1F for ; Thu, 8 Oct 2020 16:00:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jkCn4Ovc" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732065AbgJHQAO (ORCPT ); Thu, 8 Oct 2020 12:00:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730491AbgJHPzb (ORCPT ); Thu, 8 Oct 2020 11:55:31 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FF8AC0613D3; Thu, 8 Oct 2020 08:55:31 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id x16so4670398pgj.3; Thu, 08 Oct 2020 08:55:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bo14ePskj/WMnlv8VJyYTmnPSClJHgwJt2g6ezvG6q0=; b=jkCn4OvcqfO4p8OwCRKzL/uoeZNvyT+zCoYhcWCk6+ZELy746LHzyMlnLK10y2PVNY 3Z4wpUk/fZQ9pTEaeDUBK3GZ8ap1g6rve91bphqbiDHKBgG22wGFwjR7fczcn+kHLxlp d6GbFGGuip7HXmL197Kyxn1GNpkgMHuD5r7qx7d7duH5DFebD3PDm+9X3KNmzdjNLBV9 JflenVregldnSattjMloLBa8552Pc7IQ7FhU4jlIO9qGQfg+WA6/WxS7ECaq2e96ijOl A6lbb+c/kVsjF55daw/JT02Ia4AdtYXigcg61UQoLx4iaGXO9sB7m8DC3vCxwVuLfTKE tOng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bo14ePskj/WMnlv8VJyYTmnPSClJHgwJt2g6ezvG6q0=; b=lJ01iTAyfNbNAfmnJSUFWSXgbkKlMtq2C/8iPX73D4dOyqjJSj9WHeFfr3s14Axlxi QiEBxURx96PY6Ky/B+8rQW5j14WCqGqqTC366HT5Y9c1ldYxVae/1qTgPa8GMDPWdwZ8 VnWzR/vWUJaP02sXwOfbUlOg/Mr+txDdKzbkVnbRaBLS1W04NfwzHgFyMfOrp8GRDCNB ffXdF6FUfJjXGiHf3csiif7qs2bKMH/FcAzl1aQvg63PkWRNbq1IR9bo1nqkyO5wiC+E 0Wvu/9Su4kTD3CcN9P+LQgXaqWdB/ylb26fPSEy0I2ouB6cdJ4soXm9Tv7s1N8kS1+G7 s5Cw== X-Gm-Message-State: AOAM530GIlJBvy3ZYN90LkcIt4Tb+5IDnaSjj9o1VT0OpCotTohqDKQH 6O5KfK0zvKElLUu1k5E+gnk= X-Google-Smtp-Source: ABdhPJzKZqbR+KvuT/ap0FpnbN0bvzNbUbTrbtYfupwZyoHWeEJVElXxIhGFVR+zRBPKeNLxCo+BxQ== X-Received: by 2002:a62:e706:0:b029:152:5364:f5e4 with SMTP id s6-20020a62e7060000b02901525364f5e4mr8017086pfh.71.1602172530757; Thu, 08 Oct 2020 08:55:30 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.55.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:55:30 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 061/117] iwlagn: set DEBUGFS_WRITE_FILE_OPS.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:13 +0000 Message-Id: <20201008155209.18025-61-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 16db88ba51d6 ("iwlagn: move dump_csr and dump_fh to transport layer") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/trans.c b/drivers/net/wireless/intel/iwlwifi/pcie/trans.c index e408a381c82b..7c13184fc8e7 100644 --- a/drivers/net/wireless/intel/iwlwifi/pcie/trans.c +++ b/drivers/net/wireless/intel/iwlwifi/pcie/trans.c @@ -2513,6 +2513,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = { \ .write = iwl_dbgfs_##name##_write, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ }; #define DEBUGFS_READ_WRITE_FILE_OPS(name) \ From patchwork Thu Oct 8 15:51:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823761 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24ECAC4363C for ; Thu, 8 Oct 2020 15:55:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C40E4217BA for ; Thu, 8 Oct 2020 15:55:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qryhqfZH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731507AbgJHPzu (ORCPT ); Thu, 8 Oct 2020 11:55:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731738AbgJHPze (ORCPT ); Thu, 8 Oct 2020 11:55:34 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74839C0613D4; Thu, 8 Oct 2020 08:55:34 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id a200so4327147pfa.10; Thu, 08 Oct 2020 08:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Gm0EkTGTsyJArgWHylori1G+cwITsA//QEoUuazW48k=; b=qryhqfZHWmNk6RmdcJZqyG8aLGm3XBVUt+stDUxnPYnXM19PT0Z67X5ST7RQnPg1AD hQ08ugL7VG6kEIl1LolLxHFOlVwN6EiSaa3uVZULMqMut3f20HctfUWE9UqoPL5FjRgs MfcirWqSbB/LHool8yy6KDVabIPsFB1LuefYilcOjD8buTbubxKX2mBhfOSY4SgnI0GE g+veAbAZ67HHZWZEtAgme1qhD4pZXIgJnOUM/7kcXoceUKyXMokTH83/w/F4oXHHFgOb OLWt0JJk4uceWaB6ECXEbxlVaHR2a+WIwxVzqpPLvRLD3twkSMjs9NsyjKooniiTr8kW Gklg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Gm0EkTGTsyJArgWHylori1G+cwITsA//QEoUuazW48k=; b=odey4NfuQrjlezTo2ffzvcjK8sWj3dMuyyHGC/+FBtSNbkvq2QdnRW/r7j1m1IGFgm VRVW4LucPIFro6VLP1xsqluG8aBXtM0DZiRzyLm6QgsWUZGewg/1Dxcz410BzCuW7AK8 ATfeWQCsQumE/23OYPtLiCdpv94MPTTM4qn3/6Al2H2wI6+JeFLRDHEvfwivo7iv5aaA fhV4s22Z9azrekyN2UV+gzD6HWjX4UPiSVCeCZSn9R0zZBqz2ujXlHMQs1RohpUM520K sR2J+hwbk/oLX//1HXf8/KLhRNwhbXrqNQ4sM5qBtlj4XvBs6wlBW0SNKsYjSSQR8m4S 6DEA== X-Gm-Message-State: AOAM532Jh7EztRLTtfjRN0aL9QZugUvJ4Cr3WtPQZMBfYwOkoOPpWWD7 cK+vK72AYKSHPDs4T9rL05I= X-Google-Smtp-Source: ABdhPJxn6on3Jkv5lysvn4Dv6XhEOsU5sgzuOvOw1r4qxwqVfsY1CpaT5ryFUBh0GXjJ/DSr6zorOA== X-Received: by 2002:a63:68e:: with SMTP id 136mr7846351pgg.211.1602172533813; Thu, 08 Oct 2020 08:55:33 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.55.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:55:33 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 062/117] iwlagn: set DEBUGFS_READ_WRITE_FILE_OPS.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:14 +0000 Message-Id: <20201008155209.18025-62-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 87e5666c0722 ("iwlagn: transport handler can register debugfs entries") Signed-off-by: Taehee Yoo --- drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/trans.c b/drivers/net/wireless/intel/iwlwifi/pcie/trans.c index 7c13184fc8e7..f228e362b71f 100644 --- a/drivers/net/wireless/intel/iwlwifi/pcie/trans.c +++ b/drivers/net/wireless/intel/iwlwifi/pcie/trans.c @@ -2522,6 +2522,7 @@ static const struct file_operations iwl_dbgfs_##name##_ops = { \ .read = iwl_dbgfs_##name##_read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ }; struct iwl_dbgfs_tx_queue_priv { From patchwork Thu Oct 8 15:51:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823759 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1471C4363A for ; Thu, 8 Oct 2020 15:55:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9FE1D217BA for ; Thu, 8 Oct 2020 15:55:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EatfWGQi" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731419AbgJHPzo (ORCPT ); Thu, 8 Oct 2020 11:55:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731752AbgJHPzh (ORCPT ); Thu, 8 Oct 2020 11:55:37 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DDFBC0613D5; Thu, 8 Oct 2020 08:55:37 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id 144so4341020pfb.4; Thu, 08 Oct 2020 08:55:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DGOaXKZuYMRxXqw/nigolWlIyNCcj/It8YDCP3N+ZrI=; b=EatfWGQijW1G0IOoDyekMIhIJcBb/RrNQ2vGXKVIuRDkXTGrrNf9vqFTZeGoT8frUY 0sH6R53YFyQKKpa3949Twg20JxrAG0AtRsBhglyLahBslHZeNJ0DxnQBxnOWTBUkXIo6 QbagPMtJufS0H3x5z88K/leRtD+dskGqmBi4jt9CuM/O/fi7rBpHd4t6yYD2oEXY4/i+ w93YSiBlwWaaWH9yti/NncKs+5nxLB3g6WtyWASANmxsmfUtGjbwVx1Q8vUMxeYNqNGj ovuhMnz+GW5usYugPTylX9XXCTYIF9t6Ud+wj7p2Pp95NToZebed2jL+VTpiKK09HoPW rD5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DGOaXKZuYMRxXqw/nigolWlIyNCcj/It8YDCP3N+ZrI=; b=VVLvWsv5NYCgOEOpHq2yBNoh2Km7/zhk3RB8efiqb3KeYVnSh4N+Vmu1MFDKhXWTWt sFa1m2jm0p9PTGxSnxKtrWEW/hlNmf515H4N6zQyfTQwCOQ+jSqPYNKxZ/8029iiTHFt WY7wD/2kNTxUMvdFndp8u8af0zhdN0qYvY0b60TBFHR0A3R0pObwl8MJg6+hPDt5lvv7 Xhim+MrUeq7GE4HsRLmp6FhUPUnaLa1vnH0BeO/C29jIqYCR5vuBgyBa9HC8w76hPiDu B5cPNPZSk2aOJ9bw0YjfdVgVKOYdNOHGIQnYpqAEYlGWHc2O8OUaCNIRsFcDBvD1/hai 0XmA== X-Gm-Message-State: AOAM530y7muvsPMWV+E1PF4Hx+UFr+GKhsvHwd6QW7nga5w19O+MFZ/b emcdnWeZJjvmZvKnNX2vy4M= X-Google-Smtp-Source: ABdhPJxKXmIfHYCJzAX/yuHfNublcu97tDKzbzVvc0nTHUuaPVY/M/1Olf2xWmSi77Ol2KejeoMrSw== X-Received: by 2002:aa7:9048:0:b029:152:883a:9a94 with SMTP id n8-20020aa790480000b0290152883a9a94mr8170865pfo.24.1602172537206; Thu, 08 Oct 2020 08:55:37 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.55.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:55:36 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 063/117] rtlwifi: set file_ops_common.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:15 +0000 Message-Id: <20201008155209.18025-63-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 610247f46feb ("rtlwifi: Improve debugging by using debugfs") Signed-off-by: Taehee Yoo --- drivers/net/wireless/realtek/rtlwifi/debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/realtek/rtlwifi/debug.c b/drivers/net/wireless/realtek/rtlwifi/debug.c index 55db71c766fe..0a368b1dd1b5 100644 --- a/drivers/net/wireless/realtek/rtlwifi/debug.c +++ b/drivers/net/wireless/realtek/rtlwifi/debug.c @@ -89,6 +89,7 @@ static const struct file_operations file_ops_common = { .read = seq_read, .llseek = seq_lseek, .release = single_release, + .owner = THIS_MODULE, }; static int rtl_debug_get_mac_page(struct seq_file *m, void *v) From patchwork Thu Oct 8 15:51:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823769 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68DE1C47095 for ; Thu, 8 Oct 2020 15:56:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 11090217BA for ; Thu, 8 Oct 2020 15:56:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cbHyHl9n" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731738AbgJHPz4 (ORCPT ); Thu, 8 Oct 2020 11:55:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730221AbgJHPzn (ORCPT ); Thu, 8 Oct 2020 11:55:43 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1F38C0613D6; Thu, 8 Oct 2020 08:55:40 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id i2so4653786pgh.7; Thu, 08 Oct 2020 08:55:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dhVE/Lj/xi74Wn+a0azowddS2BxEUWDrC74+SgE2hYU=; b=cbHyHl9nKAwTP5NUmpgTTsLxLkeKMwDIlLdXfAXSlyUJDM+ibPwRWOcvb/xOtfYXUq tfsLUw8bqsEkOsWlTeM/3NctPA3wZYQYElmTdOsYKjILjyh16YIdKA/wjx+d1RtLL2y6 +aMhuoFgKGarlQHfuGBzsftIkq+H40+YqjR0+A+I2mJ7US2D75CO4WpG7pzsWD3l7KVc zFb1RQYDyro1FO4T76ZXjWrPRRAcJQMMN6B6XjRb6WIzOpr4y0ER4bhRa6MO0NhPL48/ zkQ4yEEnyaBeYd2Pdd6Tr4A0tC5SoOS2PHRmRexfeRlLgty9R+xAfioiEH7Xx5lXRAAD vqQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dhVE/Lj/xi74Wn+a0azowddS2BxEUWDrC74+SgE2hYU=; b=E8mFHlY5Hvdh+vvJNlGzJ8KWmTc6qUsZ0eoYxnRVgzJDtQ50xS0FEW3MCLpVosm5/H ST1FN26rt94jBG5Z4IbgdbIOO+IW5vNEZbX02pmHv3/Xwkh9eDreUfrcbo5SlLLrGNdq 8Lp9wUMIkjo1n5YuB56O0tR2NxOHn5ppfIuJRmDcJRt95OJIr+6EpIMC1FUp9Le50TC8 vF3Itjt+3be9bqlBwFOP7W/IemNc7bGxnfSjXqEwKPKFSbBsMUB+jyqVKn8bQbnCg7vZ 3sfprqvWPuXAvH7bwAwVj3HVCrGiyICBRhaAzh9XYi4P2j2a+I6Vz0BlXMNKg6v6EegM wBOw== X-Gm-Message-State: AOAM531blCY0RsOZsjQlyfqeA1jv1Lw+AzZr5lTVwdxWr6f6wSUbzr49 TWfUh3yGh9UF8DFpGIWiMy0= X-Google-Smtp-Source: ABdhPJzy+ZcAJdoZdcurBsueuM+Ir3R3xhR9uI/vF38bfT0Ai9oJPGjG+RUH1r/0o8A+pjEKQMitsg== X-Received: by 2002:a17:90a:1704:: with SMTP id z4mr8761127pjd.7.1602172540291; Thu, 08 Oct 2020 08:55:40 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.55.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:55:39 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 064/117] ath11k: set fops_extd_tx_stats.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:16 +0000 Message-Id: <20201008155209.18025-64-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/ath11k/debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/debug.c b/drivers/net/wireless/ath/ath11k/debug.c index 62a1aa0565a9..93461e840c87 100644 --- a/drivers/net/wireless/ath/ath11k/debug.c +++ b/drivers/net/wireless/ath/ath11k/debug.c @@ -685,7 +685,8 @@ static ssize_t ath11k_read_enable_extd_tx_stats(struct file *file, static const struct file_operations fops_extd_tx_stats = { .read = ath11k_read_enable_extd_tx_stats, .write = ath11k_write_enable_extd_tx_stats, - .open = simple_open + .open = simple_open, + .owner = THIS_MODULE, }; static ssize_t ath11k_write_extd_rx_stats(struct file *file, From patchwork Thu Oct 8 15:51:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823823 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3864C47095 for ; Thu, 8 Oct 2020 15:56:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 98A60215A4 for ; Thu, 8 Oct 2020 15:56:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bNwV1OIY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731780AbgJHP4O (ORCPT ); Thu, 8 Oct 2020 11:56:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731368AbgJHPzo (ORCPT ); Thu, 8 Oct 2020 11:55:44 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3966C061755; Thu, 8 Oct 2020 08:55:43 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id y14so4320568pfp.13; Thu, 08 Oct 2020 08:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=h0p8Xt3XdtzkknQZhHMSvFqlGsHM+pNMkA7g9tC8aVQ=; b=bNwV1OIYrYq31PGTPm81oj0LtmtRT+fRvQEPkZBwF5fC08wh0rLWFISYLsTsmRMhQJ 1U9H7g1H0cVHXDX7tB6CHD4nOMABoDQEtnSipa4rzBjikeRGqar4wUbhYSHXJj5BzRx+ 5/8h4m0J47HdAyZZiMtz5wlIh66XhfP2a6IHuz7c7Nq0dB/r/IIxnEAbnxcIOD55wtic P3S8ahAhqsMD/MX6QRChUZRtVq5gO6R6DLBjwlEOzcLQeILaBs+HCu8pUUzMP64aqC6A Ugr/CB0r0NbhTorn6FysNlEZdyAnYtML5bJlDINpUN2JKZtQvStNxOsazu94Aguic3NN HObQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=h0p8Xt3XdtzkknQZhHMSvFqlGsHM+pNMkA7g9tC8aVQ=; b=EImcXVmLTjCBNMTt/dBwyIxw6w4xXJhz6tpJegYzOaYPD56sK16fnPhJvzUJ5iGDyi MJ4GopI1mwVESxEs7g3NpBcS7Fpq9DiFtiv5SIHZUpwyBENXqAh5NaduWpSjxNwqms+y OHcqAVbKWxQljqOFfSeAHqk4I6KH4/22J0NTFjqzQMhD5EMkbONuH1mNIUncUJa8mJi3 112HGEQXJN3vBHCF+SvsAuoAOm0Yep2/Pw8iQ+O2DOxpmBkC2Lvxh8HcyI2rJpexmdu2 2WJGP55D+7JKuh428NhQIq7PwXaEmXGqijPiZpmevL5dBqU+U/JBDY8rQvcOMV7oiiWs ynnA== X-Gm-Message-State: AOAM530KPQZSy/oHEh/6PI4LY0goi2KvsSHtZhkesj1Mw+Y02pRjx8aB P8x2WD5GqyuFJv0lRRGQ/E6VB0CK4B8= X-Google-Smtp-Source: ABdhPJz/e4VdJLBe/mCNniWHnfrhoiYUmnurgtTy+P04ZaTMruVShtSafOA0vI5BT2LeJ/3XsdUE+g== X-Received: by 2002:aa7:8d4a:0:b029:152:4da3:df1 with SMTP id s10-20020aa78d4a0000b02901524da30df1mr8125995pfe.78.1602172543409; Thu, 08 Oct 2020 08:55:43 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.55.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:55:42 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 065/117] ath11k: set fops_extd_rx_stats.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:17 +0000 Message-Id: <20201008155209.18025-65-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/ath11k/debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/ath11k/debug.c b/drivers/net/wireless/ath/ath11k/debug.c index 93461e840c87..8494ddbef7e7 100644 --- a/drivers/net/wireless/ath/ath11k/debug.c +++ b/drivers/net/wireless/ath/ath11k/debug.c @@ -775,6 +775,7 @@ static const struct file_operations fops_extd_rx_stats = { .read = ath11k_read_extd_rx_stats, .write = ath11k_write_extd_rx_stats, .open = simple_open, + .owner = THIS_MODULE, }; static int ath11k_fill_bp_stats(struct ath11k_base *ab, From patchwork Thu Oct 8 15:51:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823819 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51655C4363C for ; Thu, 8 Oct 2020 15:56:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 04C52215A4 for ; Thu, 8 Oct 2020 15:56:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QBTc5vPv" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730629AbgJHP4M (ORCPT ); Thu, 8 Oct 2020 11:56:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731426AbgJHPzr (ORCPT ); Thu, 8 Oct 2020 11:55:47 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F7BEC0613D2; Thu, 8 Oct 2020 08:55:47 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id 144so4341402pfb.4; Thu, 08 Oct 2020 08:55:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IwF10ypWvazPHutI4WwM/WKSMkEpUIYjJO1G7I8jtpI=; b=QBTc5vPv2sTw1E5yrTXbQUzoEeaG7dLrhmTh7+jMrOJE0lROs5X3eZ+6R5kQRJOu4C 5GjPCTDkguRXbz+soEnjjVpPkC2UN4TKDDcwoTu/xvw8s+UORkD0xgW7FPFhLukYYaxT 5mOCxpLCd+zBXQhfNq4d7MHjMU+0lV2xiP03PY9AhvjtIPVZLrbUuTdXlcH5To3CqCPE XqHIKD/IiB1NBN4OkR5YY4WbsIVT+c4wEnI8IHE3bK6V6m/EC7N6Hqg1IBn+fpzQZ6hu e9KCmKJahRcwvix4tikjEHOZY9/bcZdBOBUXdA9flOifEX1kOZu/Hazb0SLafNdSQxJy SJgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IwF10ypWvazPHutI4WwM/WKSMkEpUIYjJO1G7I8jtpI=; b=n8m73ckZzN+Zgje53CXdaW/2FsyfQx/jC7MKILY7E4QOOCDfKrPCZPjb0nErOBFDGd S3WMBy1Jij3vEQ8g4ZiLT5MXaW7/yPS2OQlZsnU66jId4l3WRZXQATkE5kHoyxiOBDYR +SBD8zHJGAi2fIlGQSCqwIvSAq8QmxiEI6U/71QbR0/pLMzFamOffxtGxKE2FvFmX/G/ rkX3aF6F4VRJP6PwVxDbcd6aJvNct2e21VYugz2yHmtIPUv1s65IodQSqn1PGB7zKji9 5ygPwVwjxK8F+5lelQLQ2DnYyGyJUaTNQ05nOzOAUdScFchxcl7gpoU9/n21rjDfGJao IwgQ== X-Gm-Message-State: AOAM531mK2ZhTemDlhVN8Q6momFTfhy2kPQFkdnPzHzmhzi4U6Tujtev qlka5bvMNT6lpzimTO7fA5F/FrMy5sw= X-Google-Smtp-Source: ABdhPJxrrJEVMtlETNHQ1Ypiti4TssNb6+O3Z+Wm06TPH+4/HXcTuaFFKeMagQZvnPbO7UAn1ORMUA== X-Received: by 2002:a62:7c09:0:b029:152:60c9:43b2 with SMTP id x9-20020a627c090000b029015260c943b2mr8078945pfc.79.1602172546678; Thu, 08 Oct 2020 08:55:46 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:55:45 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 066/117] ath11k: set fops_pktlog_filter.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:18 +0000 Message-Id: <20201008155209.18025-66-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/ath11k/debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/debug.c b/drivers/net/wireless/ath/ath11k/debug.c index 8494ddbef7e7..da085c0a01ed 100644 --- a/drivers/net/wireless/ath/ath11k/debug.c +++ b/drivers/net/wireless/ath/ath11k/debug.c @@ -1123,7 +1123,8 @@ static ssize_t ath11k_read_pktlog_filter(struct file *file, static const struct file_operations fops_pktlog_filter = { .read = ath11k_read_pktlog_filter, .write = ath11k_write_pktlog_filter, - .open = simple_open + .open = simple_open, + .owner = THIS_MODULE, }; static ssize_t ath11k_write_simulate_radar(struct file *file, From patchwork Thu Oct 8 15:51:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823767 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83D62C4363A for ; Thu, 8 Oct 2020 15:56:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 28462206F7 for ; Thu, 8 Oct 2020 15:56:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="uoeTcKmj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730888AbgJHPz7 (ORCPT ); Thu, 8 Oct 2020 11:55:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731532AbgJHPzu (ORCPT ); Thu, 8 Oct 2020 11:55:50 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36952C0613D3; Thu, 8 Oct 2020 08:55:50 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id r21so1300413pgj.5; Thu, 08 Oct 2020 08:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JSF8K2opzz/7M9BIA+8wAiC8MpeJj32nxl3r6KtkwTg=; b=uoeTcKmjrno1IuQAO/cQYHsGNHYsQTuqWlAmMjEAjjwD5SpfkmkWGcVgDqjPFF4EFz nC5HGL6pw0arXbww+splPQwvSWE6QxBtdgBZdB6eCopbDIdedXhMi5ccdilee7LrfhMj +UNgr/pb5yspUjKRKYiW5mgj240SdQZwWgXfyoopXWYD//SKQ6ckV4aQvnNB4S4f/MrL m4AFYl7vGq1DirMn+IU/7HVZ2gd5GL30V9qTgRPcBoFTv+SvspfgX9b9Q1B09+wMV5w2 e8pRmCAIvv2DcCSo8ja6R1RtWLZilOwdTDB/UcIBeACjxQBx55BeaCC7uKoSszKOoZW7 1J3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JSF8K2opzz/7M9BIA+8wAiC8MpeJj32nxl3r6KtkwTg=; b=p9yRdtKY/F3diJ1ZhbPAQgvNIQjSi09AZxZtQoLqN+r/VI7WRhtP1ZjCzryR5YlLTX OCuDGlb2n50OET9s57Tpx5+yJhfEV5aLyg+Ik9ydAQXpEFpS9lNtxL1pS86NLFl+jOUw JS1ziCvtskxtsVNGVz8eJJgDR1tFgcMonTL1/e6T8cDhGBxTuvCR2u3cTFUFGI8mrFeN h0daCtyLtQxfd8/C7errbg4CcgbjZOxGgEXWXiQPwJrF/HAE2jGuSl/pDmTzNZQx2f0n aOaB5r3RHn+OepbJ2CeiQWsDokd8V68zdLb3z5PuTzDqDkH97CCqccu0Dnf7XSvDRWZl q4TA== X-Gm-Message-State: AOAM533fkTwj4c0vmXybUf8VJO5jSeAVIKTnjV8LvhhN6GTG+EHMnF4Z xMTVnR8OdKPruQz8qc8ptww= X-Google-Smtp-Source: ABdhPJykB8ARC6cBw22YGej66zmq/QyNPYapKB7oinjiEy8/vw6xKWvJvmppJZBvW8vw2d3KrDRWXA== X-Received: by 2002:a17:90a:9415:: with SMTP id r21mr8952164pjo.180.1602172549783; Thu, 08 Oct 2020 08:55:49 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.55.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:55:49 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 067/117] ath11k: set fops_simulate_radar.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:19 +0000 Message-Id: <20201008155209.18025-67-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/ath11k/debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/debug.c b/drivers/net/wireless/ath/ath11k/debug.c index da085c0a01ed..c3475ece2720 100644 --- a/drivers/net/wireless/ath/ath11k/debug.c +++ b/drivers/net/wireless/ath/ath11k/debug.c @@ -1143,7 +1143,8 @@ static ssize_t ath11k_write_simulate_radar(struct file *file, static const struct file_operations fops_simulate_radar = { .write = ath11k_write_simulate_radar, - .open = simple_open + .open = simple_open, + .owner = THIS_MODULE, }; int ath11k_debug_register(struct ath11k *ar) From patchwork Thu Oct 8 15:51:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823763 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7CAECC04EBE for ; Thu, 8 Oct 2020 15:55:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2AE98215A4 for ; Thu, 8 Oct 2020 15:55:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JNEBQA2f" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731770AbgJHPz6 (ORCPT ); Thu, 8 Oct 2020 11:55:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730575AbgJHPzx (ORCPT ); Thu, 8 Oct 2020 11:55:53 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D9D7C0613D4; Thu, 8 Oct 2020 08:55:53 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id e10so4358699pfj.1; Thu, 08 Oct 2020 08:55:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MUOJtcoeHkrEZ8Vav7ZL7Q15Y/6HQsrxjKQS1gC0RJU=; b=JNEBQA2ftXxvHb7utTJV+KO+5PInJUiByozA3QP81SVHYuGY4q8pU1fke1WW4lnLDk 7M12U+HBAv+ycqkNiriIhTZuQJcztLBb+FgRQ7GaLujT1Kz6jSHiK8lGkTyVUnAxo0Uw 0wMb11XFvhGTWM/+vLX2/TheUGdZGKx71B4G6nQ4a2qMfaOiRWRJsJAt5H8SnoW/FuDs vzXrmXAd5ji5XMoqhONYoePWqnZ/K5i9qkOG1WU9LWt2uF72AQKlflIYNZYrjLKAHdup ly4ueMrcMavjD87F3guKhCx8FG/QLrtVG0yFlgU3AOiaPCTMsW9ckyn9FS1X9ZO3isdC xVbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MUOJtcoeHkrEZ8Vav7ZL7Q15Y/6HQsrxjKQS1gC0RJU=; b=Kw8ggXPxuBH5aYqHQA1avya1TR2MnmXdKjyvHtoemtx8pqnS8nuQ326Fcue53XTAzV 9HvZGKCtTkpZLKA02FahZrv6i3jOwlT3FT4p2jJo/IujyNiJi/Ft37kGtDfRpJxjQ7gW IoUnPsqVvUOrXB20cDQCPHnh67//k2n4JzICAEVSaL9fxy+raSltDo8B18W8phSYnknR etKKFeP3qHKyh29Fb4T13nUCOfgOAoEa1ZXBEHRm21LvP2sG2zCkbBknL+lj+K8rvvDv xvRF5dUxcaYFvGha29SMb9nqLRsUsISdvZBO93y2QYQi5OeCoh/nQEnDP+bbO1vqA0wZ nTZw== X-Gm-Message-State: AOAM5321dukQQCqA5ZdrQfg8KIrTMIva13ygzWvsNqsG+nolh6vExu9D ZT2fcRsYrP5RaIn/xecKgfI= X-Google-Smtp-Source: ABdhPJzUen4dMdURtbhv61qgK4dvdlhrcGEXc5Xu7LWcBz5+Lzt9lo4Bi5U9oinaE6UQndlibhXo5A== X-Received: by 2002:a17:90a:9b89:: with SMTP id g9mr8960231pjp.123.1602172552829; Thu, 08 Oct 2020 08:55:52 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.55.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:55:52 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 068/117] ath10k: set fops_pktlog_filter.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:20 +0000 Message-Id: <20201008155209.18025-68-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 90174455ae05 ("ath10k: add support to configure pktlog filter") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/ath10k/debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/debug.c b/drivers/net/wireless/ath/ath10k/debug.c index e8250a665433..78bbb0380323 100644 --- a/drivers/net/wireless/ath/ath10k/debug.c +++ b/drivers/net/wireless/ath/ath10k/debug.c @@ -1911,7 +1911,8 @@ static ssize_t ath10k_read_pktlog_filter(struct file *file, char __user *ubuf, static const struct file_operations fops_pktlog_filter = { .read = ath10k_read_pktlog_filter, .write = ath10k_write_pktlog_filter, - .open = simple_open + .open = simple_open, + .owner = THIS_MODULE, }; static ssize_t ath10k_write_quiet_period(struct file *file, From patchwork Thu Oct 8 15:51:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823817 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8D78C04EBE for ; Thu, 8 Oct 2020 15:56:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6247F217BA for ; Thu, 8 Oct 2020 15:56:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="loDdAqkj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730833AbgJHP4H (ORCPT ); Thu, 8 Oct 2020 11:56:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730863AbgJHPz4 (ORCPT ); Thu, 8 Oct 2020 11:55:56 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50C5EC061755; Thu, 8 Oct 2020 08:55:56 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id k8so4350743pfk.2; Thu, 08 Oct 2020 08:55:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pfuo+ODM7s9TgopEFYu+f8EPhwKyR/Vk60BRbvNfbcE=; b=loDdAqkjehHXL2LFmQD05nwtubzD3PrPJApWBJtl3c2DYHeEQFv5S35MzyUH/U+QvR hgRhgjeeR6UorbvN2XhVr+0VPu4fhJ4eAkk5efrCau532lhotQkEbU+cON3Uh2TCupv6 wMWYAQrDhgtXORrBCJPHacCRw6h3t31T7+R3spgkD/zsbGUrn9KFsuCjfiTROGjAzdBd siLtih2x0IncE+noW51iH34gElmDmlbICfj/nCkQ7WiLidE+wCBfBg7X+S8bb+N+6YlQ PXldKkPbW+grfNFEnJqqTclwNtt/1eFuNyYh+ia1BvI/kLYrla9xiuYXJudo8YRZKsyz ONxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=pfuo+ODM7s9TgopEFYu+f8EPhwKyR/Vk60BRbvNfbcE=; b=Yz33g8HIEczOJC21KuLLIA43OsYs9a1RzPMQ/41hNEr/9acxYYb+Gq3ZpwmLoDL8Xv Sl4ZkN4vaXLARnds56NL+RDk278YO8xh0fOyW1f6A+PS0h/S/eX9BwDKnS7FRF60eiDQ IWTB2qT16rTb83fe44os+RZRfGwnwE3roAqx+m4pJ2UMY/BGjHUEU74k3Awbh7kep/Qg ePYcPwWJEb/TzST8heOLZvJo3bg57Zj0YR4o4XF2PK8oxDzhYYqkj0ggWCaGAOpWZJbe IYJSYX/erS5OPdUprsrFaG3ybi69rwmcia3Y8yWfR6bYSCGni6N0RLndGDXqPwrWWAoQ ykbA== X-Gm-Message-State: AOAM531qoBFuNNETcabH0FWHsM3KmAZrxwy8msDTfuqizMeancFaZALq 5+oJO/MpoBfnR3JZRTCrTrI= X-Google-Smtp-Source: ABdhPJzkgu6DSC0hnrRv1c8EXy11hP/vhmO0RIAaKy6zzxBp+Imc0CLMpK9h7c272JLzaEItTOefPA== X-Received: by 2002:a17:90a:1702:: with SMTP id z2mr8983651pjd.88.1602172555908; Thu, 08 Oct 2020 08:55:55 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.55.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:55:55 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 069/117] ath10k: set fops_quiet_period.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:21 +0000 Message-Id: <20201008155209.18025-69-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 63fb32df9786 ("ath10k: add debugfs entry to configure quiet period") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/ath10k/debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/debug.c b/drivers/net/wireless/ath/ath10k/debug.c index 78bbb0380323..9789ef98d25b 100644 --- a/drivers/net/wireless/ath/ath10k/debug.c +++ b/drivers/net/wireless/ath/ath10k/debug.c @@ -1956,7 +1956,8 @@ static ssize_t ath10k_read_quiet_period(struct file *file, char __user *ubuf, static const struct file_operations fops_quiet_period = { .read = ath10k_read_quiet_period, .write = ath10k_write_quiet_period, - .open = simple_open + .open = simple_open, + .owner = THIS_MODULE, }; static ssize_t ath10k_write_btcoex(struct file *file, From patchwork Thu Oct 8 15:51:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824083 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B23ECC63699 for ; Thu, 8 Oct 2020 16:00:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6865620B1F for ; Thu, 8 Oct 2020 16:00:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AXIfH/n5" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732064AbgJHQAD (ORCPT ); Thu, 8 Oct 2020 12:00:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730843AbgJHPz7 (ORCPT ); Thu, 8 Oct 2020 11:55:59 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6793DC061755; Thu, 8 Oct 2020 08:55:59 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id b26so4349085pff.3; Thu, 08 Oct 2020 08:55:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FEsMF5rTN2yDtTQSXVQ9G9SgxRThZwfhT1vI5VStmZk=; b=AXIfH/n5nHLhvpqBNvB1kVQg8+mejpXHXLE8WeJgvAfm9/QBOsDiC6i33wUxdhBv2S wcOh4yzNnRX28Mk5QFR7GJG1FdPDeBNZE2PZzBRSA4WsnN6XVOmT0G61S667smH4D+rV Zz7zjNAcn7rKhyXd1C6X0NwT5sc0P+xUxJRWQ04IqNvkQ0nDB253gEtx9Q9DrAsNLk8K rj52PRwStC/OeRuMHUo1OcmiVs7aj94qFjXpSp40bqKWB05FDck5+dlShYZNOxhTkSBL 9RGFh5yIQauKmZpAmsRl07AECKrR9T3pfce1Y5ckC3g8ngaTXPji9HE9EN1GCSeYTEXR km0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FEsMF5rTN2yDtTQSXVQ9G9SgxRThZwfhT1vI5VStmZk=; b=ta6BsTkXWhpJTn5R60fMt8VWU+mL1zvqYQowjxh689mZYgmfUgQe5VU/WmRszUkxAC dlUZj9D+1BxItoZFAvuuyxvLMZlvN7Ozb4lilqY7z4pBjixEY7WU622zd5FQ/eyz3ZP5 FyTYpFCcWXCYd0XSUlA8xkTL+Hmnr5WQNSJYFdTZynqkRXDtIdImobNNoKjf2/adlpEa +YzQRsnSoRruTxS6Io8PjsHBwfNGuywldpqlz9ndA95BmsFoDxRJaSXFs1Hzr7PemwHV I2/Mr34HgN2p0g3sAGTbuDo6WXNOUa1lZblJ7sPML55jX3pwOT2wlIoa8BHEsW3z3mxm L9ig== X-Gm-Message-State: AOAM530uHKwK4qs/3++1sBT056rjb87TPjdu+ivT36wJIdFOPZKc+5Ew OZDt9wSm6DPt3+TEm278gR0= X-Google-Smtp-Source: ABdhPJyGq5iUC4jQ4EIlM5oj2J9lEyWkLCej77pSpfaniCR8P6eGJcYYSEjE4JfZD0TX/ChrYXzFNQ== X-Received: by 2002:a17:90a:46c2:: with SMTP id x2mr9019845pjg.60.1602172558950; Thu, 08 Oct 2020 08:55:58 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.55.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:55:58 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 070/117] ath10k: set fops_btcoex.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:22 +0000 Message-Id: <20201008155209.18025-70-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 844fa5722712 ("ath10k: debugfs file to enable Bluetooth coexistence feature") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/ath10k/debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/debug.c b/drivers/net/wireless/ath/ath10k/debug.c index 9789ef98d25b..d1f8cf0d5604 100644 --- a/drivers/net/wireless/ath/ath10k/debug.c +++ b/drivers/net/wireless/ath/ath10k/debug.c @@ -2041,7 +2041,8 @@ static ssize_t ath10k_read_btcoex(struct file *file, char __user *ubuf, static const struct file_operations fops_btcoex = { .read = ath10k_read_btcoex, .write = ath10k_write_btcoex, - .open = simple_open + .open = simple_open, + .owner = THIS_MODULE, }; static ssize_t ath10k_write_enable_extd_tx_stats(struct file *file, From patchwork Thu Oct 8 15:51:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824081 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE979C4167B for ; Thu, 8 Oct 2020 15:59:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6589020B1F for ; Thu, 8 Oct 2020 15:59:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="h7pyCSiT" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731480AbgJHP7v (ORCPT ); Thu, 8 Oct 2020 11:59:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729939AbgJHP4C (ORCPT ); Thu, 8 Oct 2020 11:56:02 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A674C0613D2; Thu, 8 Oct 2020 08:56:02 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id c6so2962059plr.9; Thu, 08 Oct 2020 08:56:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7Q32D5CWrjwlnU0wFJzUstmYpsSOyuhF8U8ZNzuPadE=; b=h7pyCSiTlX8XM1WRQJ9/R2+ZZZnGwZIiuqK3yUyp7OgBNmW6vW1h21GTIlEVsf6ieY VRGKVK4E3EXU0BE34y5VaAA5IBY4LIikXg4qVWkGwd/8bSq9a+V14PeYPmltSPEXzOfE Ezis5ElkTrG0bX1PmViYVq9Kok37d2FphmId3lmdhIiA6Qg8pcYtupwNH6k7i3jgqrG2 Dbmc5zI++f9royums9F9f5v7P6TrIhJUZWqepOZa9L5v9rp/QhewDt3zZNfwmb5N4quU f2/k6hVUEwtEdeFhUVRhFaF2ptxSEyMiEv5H+QX16HDixtRlqrgYJrfgQoEvF69uHslX LeUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7Q32D5CWrjwlnU0wFJzUstmYpsSOyuhF8U8ZNzuPadE=; b=P9kCpdKCzLmjWzLxl9NHFWQsc4l6B7jSDrgAaetBkCs1RIJml0oPWTu0fLNvrTntQS gvBq2wksgGEGgzYMlCSNMQAB+md+HZEW9b7EvSft+VBaP97SN1Kt1yDoR6R1SdvbmuLl oEGeZ6k3adxY2blkODsXpytB+Tot27kBCWO4kGYR/O1dkz9h/NeqrVhggVUINa9cSTS/ WkT9GgFF4HloHqd6YtGsxfEcpwxuDXeiXF8BVyQaYCUh9YnZb7EAQmYYLapDTd4HKkvZ 6xGkJuKtvcrGN9wM2vvWrKpL65qeMkZrg49K8M6w2NfohuXnKlCJ5uobvMvVdU8Etvsj Y0EA== X-Gm-Message-State: AOAM532A8CQrYiXpo4pTcEVjl275j7Co6hmn8/DgJXyUFHKVtrmKYxRi joAjaS00kvRgSJK8R8XBlao= X-Google-Smtp-Source: ABdhPJwOIkjWdNRLnU/2bKUSHy1DURHSTQ1Lf2WEKTxeRb3DOyv25ADtQciN8r8fxGGYFltxyFhPTw== X-Received: by 2002:a17:902:d88e:b029:d0:89f4:6222 with SMTP id b14-20020a170902d88eb02900d089f46222mr8442136plz.10.1602172562022; Thu, 08 Oct 2020 08:56:02 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.55.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:56:01 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 071/117] ath10k: set fops_enable_extd_tx_stats.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:23 +0000 Message-Id: <20201008155209.18025-71-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 348cd95c8196 ("ath10k: add debugfs entry to enable extended tx stats") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/ath10k/debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/debug.c b/drivers/net/wireless/ath/ath10k/debug.c index d1f8cf0d5604..8829232e2b34 100644 --- a/drivers/net/wireless/ath/ath10k/debug.c +++ b/drivers/net/wireless/ath/ath10k/debug.c @@ -2097,7 +2097,8 @@ static ssize_t ath10k_read_enable_extd_tx_stats(struct file *file, static const struct file_operations fops_enable_extd_tx_stats = { .read = ath10k_read_enable_extd_tx_stats, .write = ath10k_write_enable_extd_tx_stats, - .open = simple_open + .open = simple_open, + .owner = THIS_MODULE, }; static ssize_t ath10k_write_peer_stats(struct file *file, From patchwork Thu Oct 8 15:51:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824077 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A716BC4CC6F for ; Thu, 8 Oct 2020 15:59:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4FDC2206F0 for ; Thu, 8 Oct 2020 15:59:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="o7UVjtoO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732044AbgJHP7s (ORCPT ); Thu, 8 Oct 2020 11:59:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730495AbgJHP4F (ORCPT ); Thu, 8 Oct 2020 11:56:05 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96EE0C0613D3; Thu, 8 Oct 2020 08:56:05 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id n14so4340739pff.6; Thu, 08 Oct 2020 08:56:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FlgzzwQhLsz0EGcy/75rx94byNGmT84BU3741NOK9lA=; b=o7UVjtoO75382qNinTtDoeGkOTo8p6JeX+L9DU6HxXq2tEoQFKMHvb+nSjEdibLCjp RmFW+49AWITwYaeRhyb+uXAK15drGpw62XaV/GzLlp5LCCj/qQFxe3PDz+f/8xKOiMB0 y/v7SSLg/CuWH856HHabtVGprqIh6Qlpgcxg/ZKWD3XzV9tBFUROHsAZEc62auqS47iZ aOQ2FMCrfWEB1fvHTPtne0sv0Gj3EH8URkLTm0Yu5FRhekxPQSStX0R3q4HzfmM6ef0q 5c6O8HD+W+8s8IhhsMthHlnZWKvLjB2+2W6b5sKYsS++9TEy6jdTmFDuZ88zzUbQGJaF 4i2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FlgzzwQhLsz0EGcy/75rx94byNGmT84BU3741NOK9lA=; b=dTxldNXFBfkk6aw9Dz+6wdRQlNKuqtjYoAZbsu/VOqginfdpCYqDue2hoOtBZ8enLw N2Pd/jKlmhV6h7CuO+zrWQlEes5bmkl4vvc2DxxTr3TjAHUUxc56YaFc1ATgDZL4IuNZ Q+kYK1kR1RbvuQaBdLWrbLe/fRIzZNcmoSmGtjAaZdMkn/rVzQLrayZo13+wjsKPStV9 1XuPwDFsS4ypimCIOuE8ZQ7jk+cgNWhMMWYtXVUERtp7ZU0Xt+vImElrP/NWqjzqp6Oi QlFUdo69gwU2tZOj7Q5HWffUf1yGjoiyILsahOaAr6eladnvIfayczcGYiLtCXPiq9Dd qNjQ== X-Gm-Message-State: AOAM531L+i8B1evenSd7/cY7Z/oGBqsYoXmTBo+hFoG5AchJmgwxITHz K11N9ZmzUnXH49BLWMmc2sVA8caOvic= X-Google-Smtp-Source: ABdhPJwi5O1pcOcntjIf2ly387mP4XbpE4JDsxjZOr2hdb8fSfHAlS4UJHsljeOulyVafs84sXRLPQ== X-Received: by 2002:a63:4e48:: with SMTP id o8mr7876119pgl.90.1602172565115; Thu, 08 Oct 2020 08:56:05 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.56.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:56:04 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 072/117] ath10k: set fops_peer_stats.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:24 +0000 Message-Id: <20201008155209.18025-72-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: cc61a1bbbc0e ("ath10k: enable debugfs provision to enable Peer Stats feature") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/ath10k/debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/debug.c b/drivers/net/wireless/ath/ath10k/debug.c index 8829232e2b34..afde3d8048e8 100644 --- a/drivers/net/wireless/ath/ath10k/debug.c +++ b/drivers/net/wireless/ath/ath10k/debug.c @@ -2167,7 +2167,8 @@ static ssize_t ath10k_read_peer_stats(struct file *file, char __user *ubuf, static const struct file_operations fops_peer_stats = { .read = ath10k_read_peer_stats, .write = ath10k_write_peer_stats, - .open = simple_open + .open = simple_open, + .owner = THIS_MODULE, }; static ssize_t ath10k_debug_fw_checksums_read(struct file *file, From patchwork Thu Oct 8 15:51:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823921 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04286C4363C for ; Thu, 8 Oct 2020 15:57:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9B33F20B1F for ; Thu, 8 Oct 2020 15:57:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="s2ewPt/U" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731957AbgJHP5n (ORCPT ); Thu, 8 Oct 2020 11:57:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730838AbgJHP4I (ORCPT ); Thu, 8 Oct 2020 11:56:08 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2771C0613D4; Thu, 8 Oct 2020 08:56:08 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id x13so1720840pfa.9; Thu, 08 Oct 2020 08:56:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZvYaQVw6tdHVX47TfuI83g8RHr4L9yGtu355lu4vO1c=; b=s2ewPt/UIRSsbbXGz0xkcB30BjP6voTYIqbNUu+9+RjYOd5+kjxtQXwuvGoJDREzHV 7hopy7CqWGzf37YK79GSVS+9latdLL2dtp7VKyknG+/6Cgxe68QjiePBrzU1SLrqx0J1 TNBYahzNMrH8N8eSWFfD153A+eywoRui1AQVvzaiEoDTen1sxquTdmBVoPdT4RTgFik7 kovz7F5LRV48VV2SNBghBM5u9ooa4GL4bh1IdM5DIRJXb0AQnvkN6hZyrTjiP3DTqIPQ 19DvfSPzD6tV6xVhbFeVNAZA6wXJkXN+AAodjUj+Lc9xXXbEeCLqGapuc1NPg12VZLRS gkjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZvYaQVw6tdHVX47TfuI83g8RHr4L9yGtu355lu4vO1c=; b=BiQp2IEJhHyc274Q+zbsUN8F1caX2DvppTy/s+T3mB7DAPx7bwy8YlTRjdAY3AghvW mXYdPLlxoMqyyA6j2n56LJtiKIeIi304yZ6o6013z0eqrqpDmd1TdyIGYa5m7mdKTDwd U1VckEuInSblVKSv36PEFl/HoDRSVAb6r6QkSiANN1b348IAYDx5B+nCOSMMjylABX/+ pnQ/Xlzy3X8B389+pIal+lTfGRT9DPQlm9Ub7r3nawoB4N25Nh7ygdulwBhwHpYSNh12 kJqOeVQvzb6AsIYiPozXW1qgtIB5eAFoz2LHZ9XbUJnjMUh66ZAU4QBZUN3ezIDnpANM K8vg== X-Gm-Message-State: AOAM533IgJA3TPHRKtLLVs//U0I1eRejrSLdqlbrFwJvAhQu2MyxU7rY tot1YKlbO1t7G4LCUEssTL0= X-Google-Smtp-Source: ABdhPJyj2Ebt5t0kYvL7Jsu/N9/1ctDAL7HDf+2IjvuD0lavv4Hlp3GQIkZ5PJiQsBrPC6RPvTKBEg== X-Received: by 2002:a63:5663:: with SMTP id g35mr8173391pgm.163.1602172568359; Thu, 08 Oct 2020 08:56:08 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.56.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:56:07 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 073/117] wcn36xx: set fops_wcn36xx_bmps.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:25 +0000 Message-Id: <20201008155209.18025-73-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 8e84c2582169 ("wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680 hardware") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wcn36xx/debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wcn36xx/debug.c b/drivers/net/wireless/ath/wcn36xx/debug.c index 389b5e7129a6..6bd874c0a9f5 100644 --- a/drivers/net/wireless/ath/wcn36xx/debug.c +++ b/drivers/net/wireless/ath/wcn36xx/debug.c @@ -93,6 +93,7 @@ static const struct file_operations fops_wcn36xx_bmps = { .open = simple_open, .read = read_file_bool_bmps, .write = write_file_bool_bmps, + .owner = THIS_MODULE, }; static ssize_t write_file_dump(struct file *file, From patchwork Thu Oct 8 15:51:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823827 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1CBDCC4363A for ; Thu, 8 Oct 2020 15:56:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C3048215A4 for ; Thu, 8 Oct 2020 15:56:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="rKqP7eYm" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731797AbgJHP4P (ORCPT ); Thu, 8 Oct 2020 11:56:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731781AbgJHP4M (ORCPT ); Thu, 8 Oct 2020 11:56:12 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC8F2C0613D7; Thu, 8 Oct 2020 08:56:11 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id k8so4351349pfk.2; Thu, 08 Oct 2020 08:56:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Sk5F78VcGPn+w7sgfEi3r97SHb8j3ok8zbS2IeIk1ug=; b=rKqP7eYmgW/tQFTs4r1JB9NYk3ez37im6n/Qlk1lPzoct+Sh5ayv2e4e3pj4RoaXD0 xsoo9v951BK4whK1el3HMBiTW1IwS0uK+V6WChVgS3N1wmOvQfhT3CNe3XyGlbxYMX32 vwBHz/lk/KJKQJVfg4lsrlUG5Qk+iEjxmLFi8Tz9wq+suumY/tLqtGYdmAlsWWsLjymm nZfixauEonWzu4YNSPv1K2bA4XgOOfQH5GrDyLO/r33PZL0HetiPQvLqr6oi0i2jhhYD LD3ksP7XzN/IskBx4bF2KbabsuMI9KD0lyo8DuyHU2XFSd53XKN2aJ/6AzpkUCfksHmG hzVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Sk5F78VcGPn+w7sgfEi3r97SHb8j3ok8zbS2IeIk1ug=; b=sez5+BVrSA1poAibvklxJSQEwc8mAP8A16Gj0fUBIStkFl5rZtN1Yg9lWxr2AgxKUm ScOzKCHlO0ffM2ABRl8YWHJVW7rxMiRzLzkUCFJj4Ys7jZPvINOtntr6SEJjp9vCU9uz U8lDV4zwUie6kb3ceWLubyq33Hlf1NNrIRlbeMuhNMx/xeby4el552PxsulUPyIscmh5 HjJa70RMnCpbBdnrx8KTbrW8giR0hgm14osv0Ca06Ap2fpFJ4t6Q3110WwaiVzp19cA7 BplGjI66PkR3mAyW9AIfyOfcyXUOCuWB4kzEO4zMKJ7JEZvs2mowaFcg0sjZh+ytUeZT 4Dlw== X-Gm-Message-State: AOAM533GoAvrpLlfDSHB5pF0kDOYfCIJ4q5gpVwAE7CrJsWAaeeCVnu3 v2prI3M7UXVEou+e+zDGexw= X-Google-Smtp-Source: ABdhPJyNg5hR6o1q/hxSe6JG1qvI6LnFfYlPFM+KTr6/VSTtAScCOzjoNQgPn8PWyexy80zoOdKgJA== X-Received: by 2002:a63:ba49:: with SMTP id l9mr312005pgu.246.1602172571471; Thu, 08 Oct 2020 08:56:11 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.56.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:56:10 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 074/117] wcn36xx: set fops_wcn36xx_dump.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:26 +0000 Message-Id: <20201008155209.18025-74-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 8e84c2582169 ("wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680 hardware") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wcn36xx/debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wcn36xx/debug.c b/drivers/net/wireless/ath/wcn36xx/debug.c index 6bd874c0a9f5..4b78be5c67e8 100644 --- a/drivers/net/wireless/ath/wcn36xx/debug.c +++ b/drivers/net/wireless/ath/wcn36xx/debug.c @@ -135,6 +135,7 @@ static ssize_t write_file_dump(struct file *file, static const struct file_operations fops_wcn36xx_dump = { .open = simple_open, .write = write_file_dump, + .owner = THIS_MODULE, }; #define ADD_FILE(name, mode, fop, priv_data) \ From patchwork Thu Oct 8 15:51:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823829 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A503C4363C for ; Thu, 8 Oct 2020 15:56:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EAF2F206F7 for ; Thu, 8 Oct 2020 15:56:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cOtiwfbO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731808AbgJHP4X (ORCPT ); Thu, 8 Oct 2020 11:56:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731794AbgJHP4P (ORCPT ); Thu, 8 Oct 2020 11:56:15 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06E91C0613D2; Thu, 8 Oct 2020 08:56:15 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id p11so2968658pld.5; Thu, 08 Oct 2020 08:56:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dYJORymmDlFcXkjE4Ia7fkXZnmkR7HLg5YNzzTA934w=; b=cOtiwfbOxO7Oyely0GgElaNABAJKVnJK9XnhmeyrqLhv83hJh19qCj4NmSMQi17ppi kZchgM/Rhk8M9Uh9HOjmVU37mMXBGrRDLvCLETZ8BKmi3IcGjv6Piat4yVgpLSYtVIEI MLlyN4LV//PKCzrqHNcFNRen4HOEe9zVwua97d7xTiKAOl305Prin2iEYDley+OizXm3 0XTPnvHKbl8Rtwi997z3O7HAOZBwqvtYd09p8/h/T2i2qVLeKDioqKiOvKVKr1eNtVGC YW3poNTjve7QmEPBq8qZopzQEuFGIZ3cUsoUTujjBcJX0yvj8SXoQ8U0cJhWoY6J7k8f LktA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dYJORymmDlFcXkjE4Ia7fkXZnmkR7HLg5YNzzTA934w=; b=t47OUZV8OLxm7tqIZXoFW4eLNi2rIgeWCW/3inLlYWAgdJJj25aOO9W210MUl3TAZE jw7tGLDR5/JyILzPSy7NIGPUzNjRyL2UslyFMH/VPdL96h2XyFmNf+WiNpNAcYesHRX/ eNiOZ3GOtVyn5sWEcJs8Sa67pCX8CWmsNGQGxbA7qUZ0oYCKid8h9kWWBTJouQQrvXO3 lrE16tvfLBULlzxyeGIeitJQ63wJpSSzbr5d6f1T7O+S0YebgzOGjw/irax9mFrCsMXv dShm8FUNqoyu5h9UVVzqXvzNx69td9rrG2R+8eaBmprQtiajVzgXI44i4kKOg2DTIpGE GhMw== X-Gm-Message-State: AOAM530x+YmYDBnZIQiH5c1Gq+AD0nuofeBYQ6sJfittOF5cbr4bPIDE CSoXxYBAmlaS0osfXBU5Qmk= X-Google-Smtp-Source: ABdhPJwTTwvCtZew/i9zvWa7BQ/E5Yrc1Sx99MY483IaTtm5D4amY/w/UrUag96XMzvZ7TvLVCvAGw== X-Received: by 2002:a17:902:24d:b029:d2:564c:654b with SMTP id 71-20020a170902024db02900d2564c654bmr7682235plc.8.1602172574594; Thu, 08 Oct 2020 08:56:14 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.56.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:56:13 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 075/117] wireless: set fops_ioblob.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:27 +0000 Message-Id: <20201008155209.18025-75-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 2be7d22f0625 ("wireless: add new wil6210 802.11ad 60GHz driver") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wil6210/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index 11d0c79e9056..c155baa3655f 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -678,6 +678,7 @@ static const struct file_operations fops_ioblob = { .read = wil_read_file_ioblob, .open = simple_open, .llseek = default_llseek, + .owner = THIS_MODULE, }; static From patchwork Thu Oct 8 15:51:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823837 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 229F6C4363C for ; Thu, 8 Oct 2020 15:56:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C65D4206F7 for ; Thu, 8 Oct 2020 15:56:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JiOh8pE+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731803AbgJHP4W (ORCPT ); Thu, 8 Oct 2020 11:56:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730659AbgJHP4S (ORCPT ); Thu, 8 Oct 2020 11:56:18 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2792DC0613D3; Thu, 8 Oct 2020 08:56:18 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id x16so4672282pgj.3; Thu, 08 Oct 2020 08:56:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZKzLL1gkV+MTFKanUALSDuPpwF8pnbzU9p2D7eFvecM=; b=JiOh8pE+3WtSALoSEneezMNMQdScJ/dbnJCmShp0UpypzS+ogF5t9qpg9QKRnIkpv2 qfXNRSlbrFtW0w6Zz/45fuhYd/PZuRZw3WEsIsHTyEPoB1A8ua7q2bMuQq8F3i0FYE14 akzYZ7M0ySzeQ59XdhA1pjlF0ZuVFHkfrw/5iDPWU57jlQRHULEsORBTVkwhkHOHgC/p FSSlGS7qF72U4UHHcmSO+moC7qgZcJXkC5bQbYcFJFQY8s0G1H1BheG18izM7ey1HeSs Em8fKHJAsXFF4Yy9sBImK9jtABkCNJm7CrIRnbH+4tGjlHwXO2hKsvcG04wm2MBlzZDR hVEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZKzLL1gkV+MTFKanUALSDuPpwF8pnbzU9p2D7eFvecM=; b=YpLRVvxmlI/wD0IbLyCkvo9ykIXbpQzZMQ1vArMruLJDMihbUIfbGWIUHW4tTWpb9C 7VBC5IMVtMlijV/uXmud9W0WLAn5cikyeCFVno/HseFOmKXTnQ071GOCxqiQ9NhWFNF9 tLRuULpq2uW2pNQ4UQY5lVgNQHaram9JP2BPNJQqdJ3mveAGvkD5V1j5ZtLVscjve09/ nT6el7OCUuwi2yQziCTkvWIYmq+DpH0G+U8rCk6TFi+RmD6w7tgdM3Lnwr4cP9YzkHeC jY4nBJzDMSmQzADmJYGxdxyOCPAhd3ukcOlDtyah2wSGM+Y1C3uSfZRRLz3HCrNL8OWZ 2KPw== X-Gm-Message-State: AOAM532McE2HLVAd1fU79xsuhW+wYnDoVf8nmH7eSftmBDUlby+P1PDt 2GqBJjONHU+FyipmHxk1Bt0= X-Google-Smtp-Source: ABdhPJy+Ey0d7sYJGG98XHUcT+5W/3+WSUvIeOHu4CQGAj/REF+Udt8D2PiXyb1KlOEKvNDHY9rj5w== X-Received: by 2002:a63:ef4f:: with SMTP id c15mr7956030pgk.140.1602172577689; Thu, 08 Oct 2020 08:56:17 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.56.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:56:16 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 076/117] wil6210: set fops_rxon.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:28 +0000 Message-Id: <20201008155209.18025-76-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 0b39aaf2f203 ("wil6210: Tx mgmt frame from debugfs") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wil6210/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index c155baa3655f..914954cb9b0b 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -730,6 +730,7 @@ static ssize_t wil_write_file_rxon(struct file *file, const char __user *buf, static const struct file_operations fops_rxon = { .write = wil_write_file_rxon, .open = simple_open, + .owner = THIS_MODULE, }; static ssize_t wil_write_file_rbufcap(struct file *file, From patchwork Thu Oct 8 15:51:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823839 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC677C04EBE for ; Thu, 8 Oct 2020 15:56:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 57DFF20B1F for ; Thu, 8 Oct 2020 15:56:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="njBRjwT+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731830AbgJHP4f (ORCPT ); Thu, 8 Oct 2020 11:56:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731801AbgJHP4V (ORCPT ); Thu, 8 Oct 2020 11:56:21 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 491F1C061755; Thu, 8 Oct 2020 08:56:21 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id b19so2977038pld.0; Thu, 08 Oct 2020 08:56:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qbkarZQM53mxMl1JPcJCtuTCfkMkm2hQaoEbnziXsJs=; b=njBRjwT+ifM9fNClCVdoMvmlxXLODkTJyCgOS9MonDCmEW2Vq+PEWuVeaRGmJyNLH+ UIi/PpyOnmAXScq406tV3TeqIJ8Sg1UxGEmHoRXaledUbz9RBsId+wiCk6D7I+aTF5j9 h3kAJFpZ+y3W4i8LMGvRADrTBOx5iVZAghWUNOFunzygTVE94YwzFs7frdhK0u8oGdee hZNmIvTorxbKw4peBXZs2IlcVToACD98NsvR2wYl0LcFWxHJDocO77O9cp0HCEakrWna dy+lJCYZ7F44Nze5sXqp/ZIzjX9x5xp1yAeQCOAg2nWp3OYQYc1riTXV5wI//H0SNElj labg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qbkarZQM53mxMl1JPcJCtuTCfkMkm2hQaoEbnziXsJs=; b=GVIJcfPaE2AIMpZpSdxUa6AAKexemeM1ApRK/4BYzkvQYOSS55Egz/wXrhdF93ilZQ Rle0MgN8qGhwf+Qw72Yx9TcImVkyM0Hpm/nj/vBvvmyor3ApmK0kDQlI5pBNj9zWUyuB c1m2tWeeLO65HIKHgh3PRpY3B1XtW2t5PyJ/EmKetBN9fVyPjPovxre68wWnxCmsIuyD fJabuSEK1Vqh7MEdvL2rS7YrbjzUE7paUG+kolhDV1DwCAthi0PPPpyyttm2MKMYyVvz UvYRxZTv3g0bESpLgprr+RGITfI5/i/6fTKdHxMqMEDAKn5kfMkaOq99zp9UOmWigqtc TidA== X-Gm-Message-State: AOAM530F5X3FsRObbw5pGVhg2qpXpBzvCuYRNFw5PkBPLNBFULzgHisJ W/yTF8NAHpG/ufROT82VqEk= X-Google-Smtp-Source: ABdhPJxzYKVgqo6uHZe6L1BrifmIjew1sQPXgqfzkHrben7znLczHWiEe5sDOoP5f2RERIh+RK7wIA== X-Received: by 2002:a17:902:9a8d:b029:d2:4ef:a1fb with SMTP id w13-20020a1709029a8db02900d204efa1fbmr8370220plp.4.1602172580839; Thu, 08 Oct 2020 08:56:20 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.56.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:56:20 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 077/117] wil6210: set fops_rbufcap.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:29 +0000 Message-Id: <20201008155209.18025-77-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: c5b3a6582b1e ("wil6210: Add support for setting RBUFCAP configuration") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wil6210/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index 914954cb9b0b..6c00d57e743a 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -769,6 +769,7 @@ static ssize_t wil_write_file_rbufcap(struct file *file, static const struct file_operations fops_rbufcap = { .write = wil_write_file_rbufcap, .open = simple_open, + .owner = THIS_MODULE, }; /* block ack control, write: From patchwork Thu Oct 8 15:51:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823831 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22950C4363A for ; Thu, 8 Oct 2020 15:56:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B5A72206F7 for ; Thu, 8 Oct 2020 15:56:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="e07LPXuX" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731813AbgJHP40 (ORCPT ); Thu, 8 Oct 2020 11:56:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730921AbgJHP4Y (ORCPT ); Thu, 8 Oct 2020 11:56:24 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FE2FC061755; Thu, 8 Oct 2020 08:56:24 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id i2so4655573pgh.7; Thu, 08 Oct 2020 08:56:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6Ff1QXHCZO8BHRcufyhuoJs83ZbPFhyOYQkxE1oG25M=; b=e07LPXuX2T0SO0In2f93FAvezlDMUZ7/tvgBqqsVK3qYB4NmFOj9jipZjpNlCDq1KV t9R7/rbWZf7m5NBUNk4SnM9r+1N0RbpvjFATszlRhRY+5FMDgzSY9D/rY3nI9vcsyuRk NnHygZ7B28Cp3L5EJuQsX0AeY5vIZETn5/Y3tzI7dBgs3f5x2TeqKt6LJK1BdVjnNmH4 XubE57KW3u1I5/OViUfRifrPx7mD4mAyfPXdyI25//ybEPWRDFYdecIEDfJHjUrYzSuq WutZ3KvcIWk38JB/Mu0/OYlvYo4AnqEjrFIXcH18OJVTnhTM5o1MuMPbGD1CwitDk1+r 8stg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6Ff1QXHCZO8BHRcufyhuoJs83ZbPFhyOYQkxE1oG25M=; b=OOZgFxBK4vi4qS0evrRgzpvY0wab1vC8WV3HPwul9Jkq7Kc8y4x9GvnUt3PQIk4Srw ohUoSb5JEacLg27AF4Z5ul1tvc8uEN5qVgHNW42X2rZTe5P9GKhH/LX7rwIdQFJ4iTCr Uekeyi4MDTg9FlzoMTnnjVyCB08oJkQrDUO+ajsqW3DSEvWH6q/CEN2HO3a4o0L/eOCo t6v7rY+61t7xj8X1RntNaBqte+nSSQY2l/vvYrU75cUWk1HiVfeU67w8qzmbV06frtxt HJeh4LPl9RlSXv9tNTZzN8TXnK3k/SuOwGrdA98l4MACTibmHOF7oc8+8UIBJSvC0jGw QWqQ== X-Gm-Message-State: AOAM533HUD4kta8i/gjeADek0RM2trtOJmCc3EAb+B+qr1o7TpH1nuVr Pqutn3G/ioZOOtbumdp30Mk= X-Google-Smtp-Source: ABdhPJwEshu3sTxFzI4zMITgdTZt6EcMy9vmjutH1FYs97OY76139IL9ytbGgLqKq/LsIT3+gQylqA== X-Received: by 2002:a63:703:: with SMTP id 3mr7829837pgh.159.1602172583916; Thu, 08 Oct 2020 08:56:23 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.56.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:56:23 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 078/117] wil6210: set fops_back.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:30 +0000 Message-Id: <20201008155209.18025-78-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 3277213feb1b ("wil6210: ADDBA/DELBA flows") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wil6210/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index 6c00d57e743a..57f2d6006fb0 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -868,6 +868,7 @@ static const struct file_operations fops_back = { .read = wil_read_back, .write = wil_write_back, .open = simple_open, + .owner = THIS_MODULE, }; /* pmc control, write: From patchwork Thu Oct 8 15:51:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823835 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2FA2C4727E for ; Thu, 8 Oct 2020 15:56:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7326E215A4 for ; Thu, 8 Oct 2020 15:56:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GQ5ZZXFo" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731823AbgJHP43 (ORCPT ); Thu, 8 Oct 2020 11:56:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730921AbgJHP41 (ORCPT ); Thu, 8 Oct 2020 11:56:27 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68AC6C061755; Thu, 8 Oct 2020 08:56:27 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id o25so4681042pgm.0; Thu, 08 Oct 2020 08:56:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/f4da3WxUt9YIhUxMkS8dd98PamwjnIQpWmDemwepeg=; b=GQ5ZZXFoF/f7LofHz5F7a6xXe5tOAHFkHE9G+Ntdflpy9NnL0Grf5p4x4N3WhCaRZq GXfL3X6cRYUwtE1rJ3XY/+KZQFyh/IVZBcsi0OxpHdaGcrlBwGOnCasW6n+w7LRnlCCE fx4pGakWdLApOs3kI+iXu8ygHLmoGNyNXLVVPK2sMZSAOU9cxUh5bA0CjLS2YER72+Df Fp9zh1u7rKDR6lq/WrEJ280sc+908zZwPHI9+Jgbg1VBHTuNDVJXPzq+arXMdaeS2qhE g71ebgGtPw47AJvfqCAa+2JQozIuips05U/3y1LjgBJuLv68y/ALPYAH05Xor4a40gMQ dcGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/f4da3WxUt9YIhUxMkS8dd98PamwjnIQpWmDemwepeg=; b=Mo+vzDM0UyvBN0PythiL93E34Z9SKHv7MsMKuNzc3Oby1HbyMcyciImZfo+FV6QWgL QlNrQn4g1VPY3A6IOM9hsTVdXyTfbjxnePWm9eO9e10ve/B6+UaPjF2ZKREKlvv+JO+z GRP6J5JpkuQfZikruTASrt8GurzqnyA1D88fy5pcZPZ/vDrqfbWQdqYfXbtZ8YkCrL2X w3hQI6lXHF5d6G73QZUNCxAgpIDDskBUfYbO93H2st7QQybdw8zT85aUp/+hZjfClHr7 hd0eWra2S7keJpPbffo/z6OYKrLick7veh9xpNazbrj9kHLiczFNo3slc18HvfHmvcQt qksw== X-Gm-Message-State: AOAM533I86qT/BwZVzkdxQ8VN+JKe3lkWI/z0a6m0nDI6TfINq5SGS0O LQZHHX9sfkdcDj0gwcTFa8o= X-Google-Smtp-Source: ABdhPJwcxy4wYlZIpO14BIMupwdghkx2znQZnjRtrRGuEsXd8CWbviRWbdXRswEzqOk5lnpJVITbAA== X-Received: by 2002:a63:c0b:: with SMTP id b11mr8177308pgl.416.1602172587014; Thu, 08 Oct 2020 08:56:27 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.56.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:56:26 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 079/117] wil6210: set fops_pmccfg.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:31 +0000 Message-Id: <20201008155209.18025-79-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: dc16427bbe65 ("wil6210: Add pmc debug mechanism memory management") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wil6210/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index 57f2d6006fb0..8c37af09a84e 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -945,6 +945,7 @@ static const struct file_operations fops_pmccfg = { .read = wil_read_pmccfg, .write = wil_write_pmccfg, .open = simple_open, + .owner = THIS_MODULE, }; static const struct file_operations fops_pmcdata = { From patchwork Thu Oct 8 15:51:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823847 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EBD3AC4363C for ; Thu, 8 Oct 2020 15:56:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 92B76215A4 for ; Thu, 8 Oct 2020 15:56:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="rPxj8ilu" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731849AbgJHP4q (ORCPT ); Thu, 8 Oct 2020 11:56:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730717AbgJHP4a (ORCPT ); Thu, 8 Oct 2020 11:56:30 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FDE6C061755; Thu, 8 Oct 2020 08:56:30 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id g10so4339526pfc.8; Thu, 08 Oct 2020 08:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Jbcf6VzNSRswfVAJzhslqe74uX/sqqVaZwLWIej15ak=; b=rPxj8iluaV0EAE5rhYWzA5uzlF9PVAZElFeaHVLiibSflLlqDIaMLqTy4qEY4okIJd DdQeULYZrmAbI1LYwBcnrIL6FGU4whThrOZwpxwWCk5vntmoIs4TdpPPXod0tPfW+m9+ Hzel/lVwkUzYMMVr2sFTMGD2YKGGnh9kLdlXYGf8TEa9uXjf3FvPTcAijRCqg5yopDee XfiINW+YqdX6eHW2DkpVAOFtnXhLwflm+A0Vnqv/ZgR2xpZ7Lvuz/kgUEOPCXu856zJd BSFTsj7AqwtrSGuoMOWC/gNvmq0HnOdHdlyxNLSGM9c1ggqbodmH8zVl3vzvMiNU1KFC P3Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Jbcf6VzNSRswfVAJzhslqe74uX/sqqVaZwLWIej15ak=; b=tvix5WecHgIhrr917xesTZhjlS/lm1bGOkUGDkcflkee6HRuSk62RBBaxUQ2vVxlWY iNinG8FYSS+OeTBGFshrjgqqhBl4M9RTfcalcg1ceJb8v2VmqaRhAuw1jTE4D8rJFbxy uI18vAcPYdh3KIAaXbR84VxjmRzN7xCtkMLyEKHa6bLMpPtJgJbznLV7HI33XURcxzeB Hc6Oe+ig/KKGQ2mExlUH5Z0wCwgMXltYpru3yICvQCpAP8VnKQhA039xRAHiS7fCD8oS ySco6MAUF7xpTJslhgSBv3QSTaTy/3Ug076jg/6AC5W2mplra3bVcqqhwxyBgz5lFXdd My5A== X-Gm-Message-State: AOAM533DjoFgvnr8sKBXPYWT77sBxLKiy3bOjGVOa+4VHXo1at/LfoLO TWOD5k0v4Cdte8nY0SMpKtg= X-Google-Smtp-Source: ABdhPJypOctbEADcE3zZtSwyj/9Abb3gTvDTBSqoSub+cq91icYWJNr1cEBHjTB7KMw1Hc5rHsfr5A== X-Received: by 2002:a63:595d:: with SMTP id j29mr7390004pgm.402.1602172590030; Thu, 08 Oct 2020 08:56:30 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.56.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:56:29 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 080/117] wil6210: set fops_pmcdata.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:32 +0000 Message-Id: <20201008155209.18025-80-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: dc16427bbe65 ("wil6210: Add pmc debug mechanism memory management") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wil6210/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index 8c37af09a84e..6f1603304d52 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -952,6 +952,7 @@ static const struct file_operations fops_pmcdata = { .open = simple_open, .read = wil_pmc_read, .llseek = wil_pmc_llseek, + .owner = THIS_MODULE, }; static int wil_pmcring_seq_open(struct inode *inode, struct file *file) From patchwork Thu Oct 8 15:51:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823931 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C50D6C4363A for ; Thu, 8 Oct 2020 15:57:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 62D74215A4 for ; Thu, 8 Oct 2020 15:57:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nRSHBfPC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730806AbgJHP4s (ORCPT ); Thu, 8 Oct 2020 11:56:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730884AbgJHP4d (ORCPT ); Thu, 8 Oct 2020 11:56:33 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FA73C0613D2; Thu, 8 Oct 2020 08:56:33 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id y20so2950424pll.12; Thu, 08 Oct 2020 08:56:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UJ9tWuaqAx1tPk14IV9WKGBWQcspggcO2FmZq8qWq5A=; b=nRSHBfPC10Et90IvUsNGeoZUmBHVLLTqx4kgDxm0z2SuydHUCD1L1qiFCImAY670CX z/NfCq+IYV2mMpNnoCNDTPBXNzkLfrO6wCT6BaUjLAoO+yWo6G06iIcpujf7Fdvlrgyy 14TLo9yH/Hds0UCyn5BcDhK/5VUFJN1ysfD6kwZ2SrI9VCG/1qVAZXfHG7DX1NtPHiLU tkKkb8LFFhowPcJ+vpImRKEwpdqUg3O/VpQvSpTo8tiwEFNZgzS/nzPKmTERZfZC7CLJ 1ObGlGd8Ea7Ox/2IYfN3UVN5wkZP/fsHASo/gz7UeNgvZuMUeZAv8/jFU2MRlzTdoJPq a0NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UJ9tWuaqAx1tPk14IV9WKGBWQcspggcO2FmZq8qWq5A=; b=a05laDFYS7VDen1fN9Yv1vpDZ9AeYBnu2usz0PuNi/OsBV+c8bTrKNXpsN0yHVRrzE UwOLnLbtYTbl9a5MSs5Rr6DA6aYf20ROR/6KzQhnmrNFwJnTPrnPuud8sha4h/cjAtwd kKEAenvVQB7kqnrB2HRhMMD8eEaBSM/jtWZOHDgoChJtz2NOO0AzXpaG+nCpZdzj5+mv RWXJ/q1+S/vF6WhUjkP31H9bnLLVj1Klowv3RX3UvLG3hCULJzniWxDRQBdDyf/6FKEw 289ZWtt5B1KKLIzrAso2lUWlQCrkw6FixUnWypKbu0WjdHeeKR+MWqfXu8KzAXrTon7o /9Mg== X-Gm-Message-State: AOAM531SamGdski9x5iSOzdOqbWTiDlSQyI3Hsz0P9/Trgec6ORqAXvq EGNk1lguIgOofO73MdEkDco= X-Google-Smtp-Source: ABdhPJw1UH9XxYEQQaoWxsP/7Wlu10WNGdOK/kJVewS+VUQkzxZcHVNi5R2QW4sX1t3u68vS+5HKsQ== X-Received: by 2002:a17:902:864b:b029:d3:ce46:2829 with SMTP id y11-20020a170902864bb02900d3ce462829mr8640528plt.16.1602172593075; Thu, 08 Oct 2020 08:56:33 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:56:32 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 081/117] wil6210: set fops_pmcring.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:33 +0000 Message-Id: <20201008155209.18025-81-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 977c45ab5f41 ("wil6210: add debugfs to show PMC ring content") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wil6210/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index 6f1603304d52..4891cb7aaea4 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -965,6 +965,7 @@ static const struct file_operations fops_pmcring = { .release = single_release, .read = seq_read, .llseek = seq_lseek, + .owner = THIS_MODULE, }; /*---tx_mgmt---*/ From patchwork Thu Oct 8 15:51:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823843 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EFFB0C4363A for ; Thu, 8 Oct 2020 15:56:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7BAE8206F7 for ; Thu, 8 Oct 2020 15:56:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hyj4Xwow" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731861AbgJHP4t (ORCPT ); Thu, 8 Oct 2020 11:56:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730970AbgJHP4h (ORCPT ); Thu, 8 Oct 2020 11:56:37 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B235C0613D3; Thu, 8 Oct 2020 08:56:36 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id y14so4322739pfp.13; Thu, 08 Oct 2020 08:56:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mOKjcCQno8Q2MDioiuy0iymihTx8Qw64HFe1w8XjD64=; b=hyj4XwowV6j+CddPQQ8Y0DDsJj5ilPP7rY/TQ7KSIlK1EgChd8lkyDIrsuzWGzZt3m YVViuHDDk7dInewW54VS6FEQiVs+UzH9Vi7kUWFfAtc3KVgVlibJnXtQszhdwrgsHcNa 0VtX9CjkSbAD7aPtTeTlgrG37CWBR/kncsM3HkyxCfswa8mNA81+GHBmBIWtj9vPOkKe w8dUoxYncWGG6sLIArioaTZTlXVEiKcQ9T7Ts/llDQbaGh0/8WtafKz+ZhzgACnQVtbD 6PLNXqSeDptKwBf11riRBzvcN0OoDOh2xEVDcvZkgTTIJ30IpIfa+xpWdZC4Dzzu9TJ0 C/Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mOKjcCQno8Q2MDioiuy0iymihTx8Qw64HFe1w8XjD64=; b=KIoWCtJNhCCvErU7lH68mRzP/D05RTL5vjKUes0CQWub0aTXHBJ6FK1JHcXoqp15LI sea+wbq0CQ7DYA/gGc8t/jnXcSyTiazO8TFI4phR8MfKKT+xqowbmVO/S/Iq592iMUwl 5nGKVU3chqDMB5uBhwiWAMTvE0nqUt2gSrpQVNASzXTcEsYeAyHEWWEjUgGVGVuNdz4j CgZgouxptDexq6kK4+aRFE1QV4td5LiuuoKmgHNr6YoC7QHDAVZeUFc+2Xo1/67v30dQ G0oqf91a7eE3UGTB/r9U/+EoP15O7xZ8UVvJz4OpTN3TNnJyDQdHIJsViK2sHdvzUgIF taKw== X-Gm-Message-State: AOAM533YsQFz8OVEubH8jGBVW500Ge63S0mxuOvwFclKkoat2/W1YLmA DsIyw3Tx/TyJrQprIVG2yUE= X-Google-Smtp-Source: ABdhPJzavurkDw8oa5qGlCyCLUVpvzSS54vVNhqFeTAzWBwOWGR9Q7NgkQ+ruVqM3BkZDMFYeXfhFg== X-Received: by 2002:a17:90a:6443:: with SMTP id y3mr8721818pjm.150.1602172596122; Thu, 08 Oct 2020 08:56:36 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.56.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:56:35 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 082/117] wil6210: set fops_txmgmt.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:34 +0000 Message-Id: <20201008155209.18025-82-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 0b39aaf2f203 ("wil6210: Tx mgmt frame from debugfs") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wil6210/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index 4891cb7aaea4..182185a34071 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -1003,6 +1003,7 @@ static ssize_t wil_write_file_txmgmt(struct file *file, const char __user *buf, static const struct file_operations fops_txmgmt = { .write = wil_write_file_txmgmt, .open = simple_open, + .owner = THIS_MODULE, }; /* Write WMI command (w/o mbox header) to this file to send it From patchwork Thu Oct 8 15:51:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823853 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F927C46466 for ; Thu, 8 Oct 2020 15:57:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C8E6621897 for ; Thu, 8 Oct 2020 15:57:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MTarcBSO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731834AbgJHP4o (ORCPT ); Thu, 8 Oct 2020 11:56:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731050AbgJHP4j (ORCPT ); Thu, 8 Oct 2020 11:56:39 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92BD7C0613D4; Thu, 8 Oct 2020 08:56:39 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id x16so4673183pgj.3; Thu, 08 Oct 2020 08:56:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hCNE5of9x+/yzAhpW7gQG59+p9682+iHQk4Hm2UU2Yw=; b=MTarcBSOzm9kbG7XN85PHpxOqwO2cqjjz1gw7ePZ1bhvzwwIdr9FTLUwhPcB0C1QvE 0UBFl8TZLUZk/VmRoIzKWaweWlDCkn9foFaSl1smc0ulcxnrJd8d4vvFtJaQWFvSQam2 8oBq4vJMqOzeiwMu8ZkrhKVe3oWQgnQXX0fLrc7J+wSP/v1qtSqDkbq+XvUdcCQ7nMa0 hu7JLWeJzJiVvAiLdQQejC4rLU6OLK8kEwt29d5LGgWhYwZVrCmwUERz3QsoXpbrCYWh GKqXfQkckBMhzRLP5+As2Xs5vqwcykbFtgG9jB/a5Ghm6TP68n+wb1qFglTayngA4DOz HVMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hCNE5of9x+/yzAhpW7gQG59+p9682+iHQk4Hm2UU2Yw=; b=bgUkN9bdWrlHbRyuML/gF6at/bk9nxSCseCNTey+HD/0dG0iCnwL/duTjmGiJiQmSj 6nCrUD9tMIQrh7aHc4P8AWXyPLg3qhvbIn2YsD0lq1Gx9BJQPphc71q2VYZZY4jyceWX X8sg8mhW/pE04YEJ3QplroNFLlQH4GtPvCKgk5fPVAQqdSqiDnlxul3fywazM94abHZP SzrAXoIzQVSojP/BxX2BjIxbxyK93nImJoCJ9BxO1gloEa7GKpV3N3uxO99bgME0TzUj qz2pmzO7f3IPJEzAZoBOPTd5XhvM4S695gOzEi17xASE/4xE5j7CI2dA8eljEB9qwGWL yQQQ== X-Gm-Message-State: AOAM532OP1XXTJJo1AxXIbVKvScyXl5nw0bwEp1smriDdPhi5J3omFwH JS1nqR6/7yTsb95sOW81jfw= X-Google-Smtp-Source: ABdhPJyb3kfL3KCcutwYDbWBzG0W+CoNb0RRWorsUtluptdnWJiOyik5sTWZ303Wvzvb2ksjN7yiZA== X-Received: by 2002:a17:90a:6444:: with SMTP id y4mr3859628pjm.203.1602172599157; Thu, 08 Oct 2020 08:56:39 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.56.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:56:38 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 083/117] wil6210: set fops_wmi.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:35 +0000 Message-Id: <20201008155209.18025-83-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: ff974e408334 ("wil6210: debugfs interface to send raw WMI command") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wil6210/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index 182185a34071..6d9a1de2974c 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -1047,6 +1047,7 @@ static ssize_t wil_write_file_wmi(struct file *file, const char __user *buf, static const struct file_operations fops_wmi = { .write = wil_write_file_wmi, .open = simple_open, + .owner = THIS_MODULE, }; static void wil_seq_print_skb(struct seq_file *s, struct sk_buff *skb) From patchwork Thu Oct 8 15:51:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823903 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7D1DC4363C for ; Thu, 8 Oct 2020 15:57:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 83BDB206F7 for ; Thu, 8 Oct 2020 15:57:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Y6VQp8v9" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731233AbgJHP5M (ORCPT ); Thu, 8 Oct 2020 11:57:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729035AbgJHP4m (ORCPT ); Thu, 8 Oct 2020 11:56:42 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FE72C061755; Thu, 8 Oct 2020 08:56:42 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id x13so1722235pfa.9; Thu, 08 Oct 2020 08:56:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JPUPUulqw+1KRmv2hARS7plAOiS1LLD4ufAGHDZzNg8=; b=Y6VQp8v9UaRAjgvjOdVTzCyddM7Zz7g7QFXHMFyqAE9oMDec58a41MSR+qUpNM0gDc +aGXItmYnziBfubEKhYfOKdj/fgxJU7BQFykPsVsHRQvIOqHJCxBCAUaV0N768DYonHX B+TCMhPRfUs/irch6vSw/2XJ7BpEJ8qx/5qffI6sYsEFb2+tqC9YJU5+31eWNLUuzEnK +xPtgb3tGlvrs5OwK6n+Xf1bafu+QnAn7AdU952+cybJet4Wd5x9s+djkvB1CxUJAcg7 pmqQxvnyq1PURJr6dlwt3M4zcRpPh1VY0TsZ4yqJ5bcp9QXth+69xpUI6oB6OWacHO0U 5joQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JPUPUulqw+1KRmv2hARS7plAOiS1LLD4ufAGHDZzNg8=; b=l23ZEBSCKzce4ZZi9tgQjb+1mm736aWBBae8aiFJNtjLWpMien4Xs1EoDOt/d0XrtO YtdiyzrYGOhataOMgzdAr5BL9gtvI0wheH891vrB6JSs/TAm14dsa4vgx7WqzrKxnsFT eSUITpY9V5ypHj6I1HvCNwWSAUA4wLH4rOU7Y+VIKkqdW2pgR4ln9Pf+t0vTA1D/17GN FaaSRUlDnAUo0z9E5uZUP30TYgNd7JWABkPUuE2MOUiRnhxS5N9sfbrQnX+VDZJK5zLj SF24/7kRET2jRrg+n+rhWy2qGlzJMKERFf/jy5cWS/GCOwsyzb1Kp018pBhASe/hFYzv SWLA== X-Gm-Message-State: AOAM530zZaiDiYuCdaSCD5zM5ICkFK7Jcz59mvD1A3pIxh9tCdagriOo NlxFbj2mn4AjW9j6m1klbtE= X-Google-Smtp-Source: ABdhPJz8j02VFFqd9tOWpClGYW9OXp4mrcMOKuy3Y+3/hY4jWAnZ5G/AmJFs9l17TSKOvL4+yaJyxA== X-Received: by 2002:a62:1d52:0:b029:152:3cf6:e2a8 with SMTP id d79-20020a621d520000b02901523cf6e2a8mr8101076pfd.46.1602172602214; Thu, 08 Oct 2020 08:56:42 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.56.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:56:41 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 084/117] wil6210: set fops_recovery.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:36 +0000 Message-Id: <20201008155209.18025-84-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: c33407a8c504 ("wil6210: manual FW error recovery mode") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wil6210/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index 6d9a1de2974c..e3ecdcb58392 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -1567,6 +1567,7 @@ static const struct file_operations fops_recovery = { .read = wil_read_file_recovery, .write = wil_write_file_recovery, .open = simple_open, + .owner = THIS_MODULE, }; /*---------Station matrix------------*/ From patchwork Thu Oct 8 15:51:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823855 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9935EC4363C for ; Thu, 8 Oct 2020 15:57:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3B03B21974 for ; Thu, 8 Oct 2020 15:57:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Fp3XHjkJ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731854AbgJHP5B (ORCPT ); Thu, 8 Oct 2020 11:57:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731842AbgJHP4p (ORCPT ); Thu, 8 Oct 2020 11:56:45 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0192C061755; Thu, 8 Oct 2020 08:56:45 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id 7so4640323pgm.11; Thu, 08 Oct 2020 08:56:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bGDxJudMmp+5xnmNYJduBqUawI8Rys442oCjhT5MwPM=; b=Fp3XHjkJMcTw0ftGuVkJTjm+PGuLFli1NwNttSHLOxi0rxC5BFTTrPHg0tsfRMoKlp M1RCf5v1YuP1nwR847X5o2tOlHt2rkGKubkvJFHAU1iCvzur1OvKJI2r8frvgLlOCihB UTmOxVxNSt+jbSN2uWvQaJfDSZh3ZBBv44FO7UgFhJ3GsWfCa565dLxZjUt8WqilciDI OI9yrn/znn9E4DLYO9JraxXeqOuAETWt5zKSWi5/JtaujMkIJ7QcUYT31okXuWclsRjE xXgDYndqX3DVnxCg+VPyB8uYORvStTTMC8rwjVI7O5o+uyZbkq5bTZ6fIrBkn6AoB7Rf FIVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bGDxJudMmp+5xnmNYJduBqUawI8Rys442oCjhT5MwPM=; b=avfP6ii0szGrPzQHTEL3rFy04KSNABdhqt2RqxpCb+8/OUr56zxw/dgK1lfV6iAIK9 U1vt4O32YBlMY+wRfz3WAec+OVDHZ9mNfMpy6ayONW0irefsaTtOxHjahsmi/V2vwxlE LOArC43DoBdMKgPWbu0f9FJVhDXgB87TwywVJu/gkyi15e0xS2sPtx26bvVn0lo8KA0N aT9zBapetAIa3U9nDpaHaehx+U3joTZQBkhIIJL0LAMa4h749vdxjtaFB3eS7svQIN+T MmfE73SA69azu7WjPw/U2lK7OsQpdZHLZ8q6+pl9h2ZZSkKlWUpGnGWYBZie/AfTBdXr AG/w== X-Gm-Message-State: AOAM531pCrA48rapqOQKQtU/HvUlhWsVW4rrpWO+Nqeeo86avDCMjr6i hoxVnPRj69cFC4ypIGkbMbrOFahgClk= X-Google-Smtp-Source: ABdhPJwAo94pR/w0KOGMkoe9Onkv35HvB/74eTJki64sFBereOeayMEecfC9FTDf0vMXyX0fHxndWQ== X-Received: by 2002:a63:570d:: with SMTP id l13mr7790785pgb.172.1602172605253; Thu, 08 Oct 2020 08:56:45 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.56.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:56:44 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 085/117] wil6210: set fops_tx_latency.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:37 +0000 Message-Id: <20201008155209.18025-85-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: a24a3d6abb97 ("wil6210: add TX latency statistics") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wil6210/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index e3ecdcb58392..67b2248e6b36 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -1846,6 +1846,7 @@ static const struct file_operations fops_tx_latency = { .read = seq_read, .write = wil_tx_latency_write, .llseek = seq_lseek, + .owner = THIS_MODULE, }; static void wil_link_stats_print_basic(struct wil6210_vif *vif, From patchwork Thu Oct 8 15:51:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823849 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E51CEC04EBE for ; Thu, 8 Oct 2020 15:56:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 946FF215A4 for ; Thu, 8 Oct 2020 15:56:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gCxhRtXT" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730781AbgJHP44 (ORCPT ); Thu, 8 Oct 2020 11:56:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731854AbgJHP4t (ORCPT ); Thu, 8 Oct 2020 11:56:49 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F321DC061755; Thu, 8 Oct 2020 08:56:48 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id y20so2950757pll.12; Thu, 08 Oct 2020 08:56:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4bfP6LXabSr7jA9LzOT0tBNan1JAkleaaatfC9KHj3A=; b=gCxhRtXT9J4HF9L/DrjBiN345zbb5NtDyUOGoSIyGbrR3BWdeoDosbaIm3dZHKEaEA LXmen1SafQkLj55NDeMm3JAKkB+Gt2mop4UYVBx7MgwT6pNw5XQZ1G/qJF6BGhOZcFH8 aaSlOxughLGCg52Rs+J0JMRBow6Zw0Xr+eneaH5qbYLQy3Mmysr7xXDToyHJOQruIieY q/88C71F4hsNlZRlH2ubhYp0yr0mp76VxJ4JIQDwJvvA4I1VWGLpdDa/qPEKVK2DDEmq YDJibEGeTT2aok+0/Cq5irYcrt24O2WBnYCWI+9jr4a8eMo9skXix/Cu2Y8yKBFfvlSc Kf5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4bfP6LXabSr7jA9LzOT0tBNan1JAkleaaatfC9KHj3A=; b=UcPMRpWeBNlxGZ3vHHbh3fBEtuBrTAe8GpSvMLDNOaGg1UDft3qtu5LdySTjt1eWBy 4c25RcgV/NBnMfR1I62Jnu/8cF9bW7c3EHcmzA4zZodfxQmEr32NQJBTV4rjgNKMYdZw cDb3OQG1h+Sg1iiRz5umkuFPDFwanrev8pCy+Z793LQcgs7MPKwKJvlirLN6w8mxXoys BCm1y/J+jHtH+6flfAyXtvMwtWeqbFkWy9HNnGrvBdbw3Z1EjrEuWwJk38ABvLFpIH18 jd8mLRYs6BOlgv7oMnRIn4ibZOpHFqsJJ4xjkf6+ejnjN6xqp4wuPMFH7X0MTFbRZ8Ii VyVw== X-Gm-Message-State: AOAM530Jssk+4T6B9Clbo1aPlhZ0O14Y07Dx4rMSl0oxWKRjTaiq04/f BUOu3ANf98yeryS8jiTcJBA= X-Google-Smtp-Source: ABdhPJwykv7W7MUJnB0ASEDvlJ28J8I+YFQOWJa1WlzFgq6tFOPyb4oh3yA1TmQnP0HYMbNH40OP7Q== X-Received: by 2002:a17:902:59d8:b029:d3:d115:66d9 with SMTP id d24-20020a17090259d8b02900d3d11566d9mr7769230plj.84.1602172608363; Thu, 08 Oct 2020 08:56:48 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.56.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:56:47 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 086/117] wil6210: set fops_link_stats.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:38 +0000 Message-Id: <20201008155209.18025-86-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 0c936b3c9633 ("wil6210: add support for link statistics") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wil6210/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index 67b2248e6b36..a2dce1ed9d0d 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -2010,6 +2010,7 @@ static const struct file_operations fops_link_stats = { .read = seq_read, .write = wil_link_stats_write, .llseek = seq_lseek, + .owner = THIS_MODULE, }; static int From patchwork Thu Oct 8 15:51:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823937 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3AABC47095 for ; Thu, 8 Oct 2020 15:57:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8D3A7217BA for ; Thu, 8 Oct 2020 15:57:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DB1Ecoyp" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731142AbgJHP5u (ORCPT ); Thu, 8 Oct 2020 11:57:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731892AbgJHP4v (ORCPT ); Thu, 8 Oct 2020 11:56:51 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02BC6C061755; Thu, 8 Oct 2020 08:56:52 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id x16so4673628pgj.3; Thu, 08 Oct 2020 08:56:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aGZnGeKXb/4W754G+q1uGMo7EKzQsbVNPjZnlEWbXqo=; b=DB1EcoypNY9HQ9vP/ZQDs+JcVAFPQEoHii3uTKcw8IlqvtDGiqhefgm9CQbAvheovD C+kKKqj/Our4LtqWU/UoYdNYLBnBDcgQ2UqPxGkTUTRERYgs2C8FSWIkvTrMA7ROsu7f UsQY/trOlsAyg1QGifjbr387xACRwUsvDymzII8YqXoBU+JHti2zoeZr4Uj0BevfDEsj 3qL8OVzsBfS7+GPz6SlvSEshaTVWmHpdDqS0zsD/c7JaYE54B4GQx9U+yJVgNmuWNwSN ZwRpv7z/yL8+xBD6eo0J63QcSF09aT8EXmSS8YsQYEDnyQ5ab8rJVnagkywdjhcWmN8z 88/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=aGZnGeKXb/4W754G+q1uGMo7EKzQsbVNPjZnlEWbXqo=; b=jgJCAVqPCcOMU7ta1X1csQc+Bd4gtGMdTuCfCJCcgrSDyjctc+u8o4E1gf41oEOjh8 UsuvE7/dckVLJ1mBhIFfzHNq4KvHw2/V22PFQP52HmhnysChOkY/9MsAv8zCkgQoEEtC crPS3ctnciwF/BjbMFiF75cuuEwYyUifn9xUqZ+q/oeOxHNts3FrJ1HSSwxgy3Pz5GVS uk8AdFbGrc7uaUfQJxTFE0ZbmRtH5NaRFXO7D+ajwZsDwPhNzGnOcJSbq45fZEfc8vg0 TmYN2hpVvhWyWQouuqOcEuvHtLd7ow7JPxB+fN0keR9Xc22suxrE/KMxTl/huhTiwQ1F l+RQ== X-Gm-Message-State: AOAM532ebZnch5MGMh6HmziKtGdeM5uOEGk61ZIOFsDnIPdwD5xq9zvQ x45rjpeEs5kH3VXRbVDyomg= X-Google-Smtp-Source: ABdhPJwEOpTER7zbhABAZgDD4dvOTJBB90S/ppnvdwrlVJH6yEFLM9shYc/xABwQb/+0kSu35vsqxg== X-Received: by 2002:a63:3205:: with SMTP id y5mr4782541pgy.122.1602172611596; Thu, 08 Oct 2020 08:56:51 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.56.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:56:50 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 087/117] wil6210: set fops_link_stats_global.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:39 +0000 Message-Id: <20201008155209.18025-87-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 0c936b3c9633 ("wil6210: add support for link statistics") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wil6210/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index a2dce1ed9d0d..afbe30989ee4 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -2065,6 +2065,7 @@ static const struct file_operations fops_link_stats_global = { .read = seq_read, .write = wil_link_stats_global_write, .llseek = seq_lseek, + .owner = THIS_MODULE, }; static ssize_t wil_read_file_led_cfg(struct file *file, char __user *user_buf, From patchwork Thu Oct 8 15:51:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823999 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 803A6C4363C for ; Thu, 8 Oct 2020 15:58:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 27E0A215A4 for ; Thu, 8 Oct 2020 15:58:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FSWzHUoP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731947AbgJHP5n (ORCPT ); Thu, 8 Oct 2020 11:57:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730970AbgJHP4z (ORCPT ); Thu, 8 Oct 2020 11:56:55 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02114C061755; Thu, 8 Oct 2020 08:56:55 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id o25so4682117pgm.0; Thu, 08 Oct 2020 08:56:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0zIsMJt7nMSPYfhqvNOhy588R8B7b1fBm6xS2B2jQIY=; b=FSWzHUoPiDqhvaPRKOBdsq6b3u1pRNdYQC7taGIwxFp7NqG5xIOSj0M1Gn5aitKLHL CBWqwcr6xk5R+aQVFCdv9+dVnnmkCtRiGbAh4hKdVISjYVcGR2miDdOvblyRc4UnNzt+ 1tfp661aoGp08kTcBXftZuvqezGhMOfpYFYdAqOVoKZ5DzXm84miLfDt8RoS0vIGqKSl nu5rzDroLfRmUMZw+JAgfIIl2J2h7WsgHL/gi/ysaSctq7dHO8pNBrpHQW2Fmhdqga7X r0pWywhTzP6paxPvR4Hz0ZEM+CaO8Pd0q2xU92+Eh+jb8ub++URuYCPHP73B+WL+gDg7 QyiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0zIsMJt7nMSPYfhqvNOhy588R8B7b1fBm6xS2B2jQIY=; b=RUdphhI6X5iBKjildr6CelY32o7+D7GUMDduhEmfwMVwQU1b2s+hEHkJOmCJ56zwFh Lf/u0gIQ23hedqAVopQOmzbEiRjmJIeGpQ4cObE3UfnDaua/JPxdpNf7SDAKXtfqPs96 AuAZvu1HApZZumuzi9TkZBQMecLcBLtsovnXA/2ON0U3NHjdgnCeH3A6AKtSrlc7PBvM jDj5W3XyqC2BW0vgfkGOs3t5GbbtgqiT0E3X0dO2tmSj/elScPG48edKlnS6Bk038jSL xxM1PJQzxBIOvrD1Ctu8Z15bBndgy/4VGCl78X7Mz84QUHGcJdBkFwo9DNFGaOZoJwNu wPTg== X-Gm-Message-State: AOAM5326+QSCuDvH/SjezTN5SzBRaw7a9w9KN39VCLF9KBhfnJHo9Byq psbDTnzxkNvvfaA3JZlO6X8= X-Google-Smtp-Source: ABdhPJwsN6a+9A2N7o2AXDI8Jgts/CjX71qJWddnd6xYG85+a0FRLv3NS04yv7gouJBuz/bYt1aErQ== X-Received: by 2002:a65:5b48:: with SMTP id y8mr7704919pgr.67.1602172614592; Thu, 08 Oct 2020 08:56:54 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.56.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:56:53 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 088/117] wil6210: set fops_led_cfg.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:40 +0000 Message-Id: <20201008155209.18025-88-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 10d599ad84a1 ("wil6210: add support for device led configuration") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wil6210/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index afbe30989ee4..54285e5420f6 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -2113,6 +2113,7 @@ static const struct file_operations fops_led_cfg = { .read = wil_read_file_led_cfg, .write = wil_write_file_led_cfg, .open = simple_open, + .owner = THIS_MODULE, }; /* led_blink_time, write: From patchwork Thu Oct 8 15:51:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823915 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4DDDBC4363A for ; Thu, 8 Oct 2020 15:57:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E7116215A4 for ; Thu, 8 Oct 2020 15:57:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BW/x83GQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731924AbgJHP51 (ORCPT ); Thu, 8 Oct 2020 11:57:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728421AbgJHP46 (ORCPT ); Thu, 8 Oct 2020 11:56:58 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A80CC0613D2; Thu, 8 Oct 2020 08:56:58 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id 7so4640825pgm.11; Thu, 08 Oct 2020 08:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dGhGOobaPW2Yyn9FO3pZkXJcwxpE34qEOqDFXN5Yar0=; b=BW/x83GQ5BIPmEeHhu6wP2btnYsX+v1ajfZCdAJKn2bwpH6SqYwhTj2L9zAa1lvggo Bu4bKEjD4f9VRbRRzNGPdhzmm9Ytk+N7IhHxmK2EYOm8MYiS1naKOgE0gegMZz8mHXM1 /zY5zvmACByJQEB7MmoQjjN1re9NQE10pcGbVpXm65lmULbqgwflps9bIQeNYj2v8IuL uDrq+c43yqQ1L2+Eu6LadfgpECj7gQuaFySJs5vIqw5YwP7BRdn1qC4YnW6OHVioGLxO UmrkJ74eRFmKThLsGyfYwcYdiv0AxgEI1R+PlAJB6R54JYug9yhIGF7m6Ee7LN1/Pns2 JZqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dGhGOobaPW2Yyn9FO3pZkXJcwxpE34qEOqDFXN5Yar0=; b=tG8Sk7u+ybHWPXI+IM/njxVsOsJvIA+lEoOFMnZ+daK1wYWkWTIbi6o3mAS51FUWOX +7ghFWQagy0wazU62VBBbbdWb8ORwo2V31NBo2qjzDgWJAc6X0jWw75pZc2wi2oHaick /AwlPHKlV6rmOC5rbf4hAqUOc/VigrhJDIqvZWM/LKNVxY57u3ipPOnsrEy2zuNIUkqv SBV+cYB0XFMiGg/WNdLtNEogHE0TBQWurHwghKuTWyJUvO+Gbm8QazDs9uEroEvoeXEX Bjg+ZYSaDzt3JV8xy/+L8l8Z8quVrkFJ8xZ8LghkwXoYcZp4qiKP/tGjGJJtEH6HOtr8 2Pxw== X-Gm-Message-State: AOAM530maBPhfK+jwAYAes5iaQTeE7ozty9a/EG1d8qmpN7UIimzrsQv 1pkhEeSAToEKzFUdLBWKXIA= X-Google-Smtp-Source: ABdhPJwUvCnBnfdq36DOYyGffop5ULex1O+HU0w/VlHR9graPsX0GcpOYSGs0N4qnd6qAHlm5AwpbQ== X-Received: by 2002:a17:90a:a512:: with SMTP id a18mr9066491pjq.30.1602172617671; Thu, 08 Oct 2020 08:56:57 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.56.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:56:56 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 089/117] wil6210: set fops_led_blink_time.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:41 +0000 Message-Id: <20201008155209.18025-89-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 10d599ad84a1 ("wil6210: add support for device led configuration") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wil6210/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index 54285e5420f6..c4c159656eb6 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -2179,6 +2179,7 @@ static const struct file_operations fops_led_blink_time = { .read = wil_read_led_blink_time, .write = wil_write_led_blink_time, .open = simple_open, + .owner = THIS_MODULE, }; /*---------FW capabilities------------*/ From patchwork Thu Oct 8 15:51:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823913 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8EA6BC4363C for ; Thu, 8 Oct 2020 15:57:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 307A7215A4 for ; Thu, 8 Oct 2020 15:57:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eRffuTua" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731921AbgJHP5Z (ORCPT ); Thu, 8 Oct 2020 11:57:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730841AbgJHP5B (ORCPT ); Thu, 8 Oct 2020 11:57:01 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 197A4C0613D3; Thu, 8 Oct 2020 08:57:01 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id bb1so2976448plb.2; Thu, 08 Oct 2020 08:57:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3VzWT6HRJEnNHiHoLIsKjth52BnG0NvlFKcBX62YyM0=; b=eRffuTuaGe7Gb5Uq8P8NBEkKBUdy54730DcWmbr47yKkOa0xlXuZFXQ8RqDPEHVtqO U0LDRel+QoWvrQI9dHaSsMxGXCh6/ABjIRl+2KgN4Kp56Idk/RKk8xCNE7ikrhk34Dvf zdpcNRASG4huKYYRNWMnWfdJDy3Iz8Ivq/EeS4uPw5sRJUzKJGBtmxGF67BprSzo//94 57emobn1BbKHpHttAAntLCrUPU9QzhEUTFVO4qa6bLU2KmiKY3CrAzT3q8t/tatJOoSh Li105n8L6ut1lfdg7Snsk8TBHIW4TNM97h4Ws9cqpHxWuxb1RKUr0eYVlLuHjaYkTUpW USkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3VzWT6HRJEnNHiHoLIsKjth52BnG0NvlFKcBX62YyM0=; b=BTaE4VN3kKtT8AirshouXsed+QB6UQpL7tfawt6dHMEjwjZnOqwBqncY8ZJQ7XEhFO DIJgcXKlqtWA+iEvqn9BhhSv5WWpiofiUEmJE2bIsSDLqZuh+PbhQfb6bIooB4Fle/Rw ksueM+/1crzT9WAWo23PQjd3d4IzGhcG38Nb+yyjMh/FZtehBS/mZVt2n2XAcViO37v+ WCnCr4W5VS8Bgpshd1GZe/URjqDUw1wfZ4KQ4IjGbZi+vxF+qZtjSIJXpYhEzi5S0aFg elZjqdy766WC8yJE1X58/W4K60RhV0j4iVREOnyjD7VLitb7BNpAxQ2ymISg+xEFdP0e IUXQ== X-Gm-Message-State: AOAM530+Hudx7IMDcy+10R1AGYEqGkk1sKZXcHaxTVQAXyo2y5Ik/Fya 093RrpPnojRXf5dq3cuU09g= X-Google-Smtp-Source: ABdhPJwCQ9Tz2atCw6gPI6xCPGKCnnrppBjAltGzgFT2SB8yvxP6fvYWuDU0khDerQJ6nGDeUoQD1A== X-Received: by 2002:a17:902:a613:b029:d3:8afc:da51 with SMTP id u19-20020a170902a613b02900d38afcda51mr8056463plq.19.1602172620660; Thu, 08 Oct 2020 08:57:00 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.56.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:56:59 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 090/117] wil6210: set fops_fw_capabilities.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:42 +0000 Message-Id: <20201008155209.18025-90-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 12bace75704e ("wil6210: extract firmware capabilities from FW file") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wil6210/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index c4c159656eb6..b147b97c0d5e 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -2204,6 +2204,7 @@ static const struct file_operations fops_fw_capabilities = { .release = single_release, .read = seq_read, .llseek = seq_lseek, + .owner = THIS_MODULE, }; /*---------FW version------------*/ From patchwork Thu Oct 8 15:51:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823917 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD5ACC4363A for ; Thu, 8 Oct 2020 15:57:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 51ED5217BA for ; Thu, 8 Oct 2020 15:57:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ejFzCotf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731913AbgJHP5U (ORCPT ); Thu, 8 Oct 2020 11:57:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725979AbgJHP5E (ORCPT ); Thu, 8 Oct 2020 11:57:04 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 315B1C0613D4; Thu, 8 Oct 2020 08:57:04 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id u24so4683252pgi.1; Thu, 08 Oct 2020 08:57:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BZWfgYnCGeFpIPa21k7qNqO1BMWShyJcjVnWw4J6NkQ=; b=ejFzCotf/jsXbPXwii4iyLGaLyU0/dCxn/IezSLKc3jAD19AhjoKIkHOHex1TNmP4Z MEXZxfl4qSoRCVh1JcVPvuHvlamHwVU8MIiw7eLIZLtrOAL1EVcwJ4oV/PRSvoWtJGH4 ZJtnNWEsHMjXEkMu0eYeOmKKY7TjdHeGVXHOVyuqfy46WiGJ2nLxWot2VNpyEIrJ2KSa TZWQujGBVc3OWSXXA3fqr+J8gdbFYJO/ANWPj49rw1JlxEfEkfDTqr7UjnIDGYeT6omn ZlYVfVwCJjePjRU7E/7ad5DHpTDxUxfZP1eazO7cOTzA1O5CT1PJt1qaXllMNdooQEMI +Adw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=BZWfgYnCGeFpIPa21k7qNqO1BMWShyJcjVnWw4J6NkQ=; b=aAADu5T42pXnfLaPbvDPA7WKblFWt1joIwwzIjZPUkSsiD9hq9gtbUvjm9UdP1l8H2 +gTWHfmd+G7XE3qTCTdICjdleqQwr7avk88T4EmnNExxA+UWXEz+BjRVaNlfYUas1+St QRjXssClfuX0wE4k/hpn80JnXX6gX/arCD6OrR0MDZRIknu6Fi5U5OmniSrOPR5kkrej SwNHK+W3cHmzTaoqD+riD1R1ZY2ob9XA1ZdbRF95AT0BKazDUd+A6rQ0C+3rffDqs9i6 Gh/sCcKP6demTYDpUDEx/JO/Vf7aHeoG9C+/JryBVqG1P1v2Kw/Wg0L88DSH/TbPH0TB hhsQ== X-Gm-Message-State: AOAM532NWMDiYrgr5LWnrVpuwdh+aMZ4u++iWKfGMNFAwG3u1IS7CnrX HV3ffMrDBYYNWn5KfHB1nEE= X-Google-Smtp-Source: ABdhPJzHoIUiSChwgu0dItYQdGH3lbKUfe2sL+AKBVptXR8rzKKFE6XIYWrAAokExax9FFKOy8dSzg== X-Received: by 2002:a63:524a:: with SMTP id s10mr8190997pgl.40.1602172623729; Thu, 08 Oct 2020 08:57:03 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.57.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:57:02 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 091/117] wil6210: set fops_fw_version.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:43 +0000 Message-Id: <20201008155209.18025-91-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 13cd9f758a55 ("wil6210: extract firmware version from file header") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wil6210/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index b147b97c0d5e..c1a43de9a630 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -2231,6 +2231,7 @@ static const struct file_operations fops_fw_version = { .release = single_release, .read = seq_read, .llseek = seq_lseek, + .owner = THIS_MODULE, }; /*---------suspend_stats---------*/ From patchwork Thu Oct 8 15:51:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823919 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04AAAC4363A for ; Thu, 8 Oct 2020 15:57:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9772021897 for ; Thu, 8 Oct 2020 15:57:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qlcvLZqg" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731867AbgJHP5R (ORCPT ); Thu, 8 Oct 2020 11:57:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727019AbgJHP5H (ORCPT ); Thu, 8 Oct 2020 11:57:07 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41BD8C0613D5; Thu, 8 Oct 2020 08:57:07 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id b193so3766017pga.6; Thu, 08 Oct 2020 08:57:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Tfp/qncVNy+GdVuYJXUXyCykG6PITl3LD9dt3WR8h68=; b=qlcvLZqguCbYKNDwPvqdcN8P7sE/S2uSqq+LY/gx6UY0gSLxO/5ZUEBwBvLGur+/2j TDhWqkrnuOby6EhTwbeusSt/IRnChGr3b3k/vtda7L7A0jHf0tFSQIDSSwk5TFDxeXfk yiyGxNOpf1Cm6zSUiotyq5Y4YC9JEdJ+/mE6TXTuDutxsVh5yt5kEDDFK/koaszygAg6 CKDI1ZsjtSBeWMznUq7TJ2n+UIXLrk2vjmELBoS4eiSJJ8GhXnGobTFdHIC0fdEPke95 D1F4QxfTepjHDIizR99LetQN8pO3hjrXSsywd9gkXDHpnS+k71MA9NSFa3d8ClmXOVyx tZ7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Tfp/qncVNy+GdVuYJXUXyCykG6PITl3LD9dt3WR8h68=; b=jbjlpNOjWGAsWCXB8fpJH870paIdRWkgCfA/jpmZHhtlCniP1DwAfB2R6zqDdg5cB0 aXZX0eh0K2L3VxL7su8ItTBesjLEcEURFjrzkfeOD09J62FQ/thQtVfj/LsB29q9rFMo gl1SYKB5lUd20RFdm5sbA/wb6Np1NOfnqWvACQH36eYHFbQFEN875hCNTDpkDm5FgcbW X2LKDW5zsDWw3fL4ypYUyQZ/GqlOXB9LNjxs71TfDaW9AsizacalHC/yZA8dgNXnnXOR y5jtxaIzvrUVMlkCQMeKms/fjOtnuttUKewEiBuRNqs/2rp1QKDpvgn+CiNUVb3UEAe2 mVBg== X-Gm-Message-State: AOAM531RurYui32gSLP1bvAw/YGoE2U1cfaEBLxKD/IEa5AcJU/q667H +5ycRvMB4azyWw8DPm8hUGc= X-Google-Smtp-Source: ABdhPJwdXOqEQIPmHdcTEm0vKPQ5deM+0dEYb+F5Limcyd5lWy9/cecBMRpQz8DhnC6BqFSa8wWCPw== X-Received: by 2002:a17:90a:1ce:: with SMTP id 14mr8984314pjd.209.1602172626800; Thu, 08 Oct 2020 08:57:06 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.57.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:57:06 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 092/117] wil6210: set fops_suspend_stats.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:44 +0000 Message-Id: <20201008155209.18025-92-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: fe9ee51e6a43 ("wil6210: add support for PCIe D3hot in system suspend") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wil6210/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index c1a43de9a630..4ac558f95586 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -2292,6 +2292,7 @@ static const struct file_operations fops_suspend_stats = { .read = wil_read_suspend_stats, .write = wil_write_suspend_stats, .open = simple_open, + .owner = THIS_MODULE, }; /*---------compressed_rx_status---------*/ From patchwork Thu Oct 8 15:51:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823905 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21BE6C4363A for ; Thu, 8 Oct 2020 15:57:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C43D320B1F for ; Thu, 8 Oct 2020 15:57:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hH6tKUwV" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731890AbgJHP5T (ORCPT ); Thu, 8 Oct 2020 11:57:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730964AbgJHP5Q (ORCPT ); Thu, 8 Oct 2020 11:57:16 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73CF9C0613D6; Thu, 8 Oct 2020 08:57:10 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id p11so2969904pld.5; Thu, 08 Oct 2020 08:57:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zsp1f6T9aoXrg33z2WLXsW7tDdYDHFrfejg8cWxOAW0=; b=hH6tKUwVNX/VZTnsKe6BVDRizmh/E2bW7dtzMQsznnVdsx7wS3cAhDUHf6SU3J5vV8 mRp5ggQrtSaM2eAGo6FHEA6wVAr0WCf/LJ0AkMfiU0jbzNqBcrs/k7D0K7XC87uAVxpB /p3U6hxSrhphXk9Ks/qajwW5dLJRlUlw/a0ypAQaZGuFMOTb2Dh4rIMqv09eSdFPlxRt loQdK6Fj2EmnxO+1w7KuuX2OLJHiHcUarkLYWyt0/+AEA9oMGN+qzl1qeueCtpTLAzbk L+ja1jodgbFeGhKQoP1a/CG36zAJJmK16Etza+ZMCMdlIlfQ69JWCYIDje4+7RUBitAJ jcig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=zsp1f6T9aoXrg33z2WLXsW7tDdYDHFrfejg8cWxOAW0=; b=sXHujbSN0uQJp6AIawTHyAoq3uCFmQ9dmYoggA945zHDfpA+Ql41ytwHAcUWFepoho YAqJYxgewGDuFt2YCS9XUF34TS4jP4jSqzgbGaOX+8F/C/WPKcsC/G7Vlas4/vF9eEHg jZb0tYqpJAxNov69hiQOeCGZBNV9kosAi2970ILVvOmUyxOgmVPRCcTBHNRBOFU8llJA IFIUm+F61k4/reyzERHQz/v237wi/wHWEC0VZtxoIVxJnOboSrKxiQSokMTH48CiwVrL wA7gX+qwIxQ/9KrdaxONiNowhDJ0b0j31V70I+YxSMLcU4DRiRfy7TBoz4cpMWgkbRBe oxsg== X-Gm-Message-State: AOAM531dGhU3FimZ5WEcZPNR1zr+fJNeD9NX1+OiJE3BbFrR+RSdoIOf c0pGlVmdlx8IPnJZPm8Gz9U= X-Google-Smtp-Source: ABdhPJyyKdDdvSy66qo3o3uJbwvSEO42tCf5MC3wYGNmZtLposigy0O2iJRsp5dINeyOcu06bHIUtw== X-Received: by 2002:a17:902:b211:b029:d2:1fde:d452 with SMTP id t17-20020a170902b211b02900d21fded452mr8088462plr.36.1602172630050; Thu, 08 Oct 2020 08:57:10 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.57.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:57:09 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 093/117] wil6210: set fops_compressed_rx_status.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:45 +0000 Message-Id: <20201008155209.18025-93-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 96c93589e2df ("wil6210: initialize TX and RX enhanced DMA rings") Signed-off-by: Taehee Yoo --- drivers/net/wireless/ath/wil6210/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index 4ac558f95586..7540c49aba3f 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -2347,6 +2347,7 @@ static const struct file_operations fops_compressed_rx_status = { .read = seq_read, .write = wil_compressed_rx_status_write, .llseek = seq_lseek, + .owner = THIS_MODULE, }; /*----------------*/ From patchwork Thu Oct 8 15:51:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823907 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 476E8C4363A for ; Thu, 8 Oct 2020 15:57:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F0D8F215A4 for ; Thu, 8 Oct 2020 15:57:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FyYsqgpd" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730972AbgJHP5X (ORCPT ); Thu, 8 Oct 2020 11:57:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729035AbgJHP5P (ORCPT ); Thu, 8 Oct 2020 11:57:15 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 840A2C0613D7; Thu, 8 Oct 2020 08:57:13 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id i2so4657484pgh.7; Thu, 08 Oct 2020 08:57:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=evyKndbwepYrq5KDuUy+JWXd6ewoiEHFeL5yHKdiEYs=; b=FyYsqgpdQ2UtIaBo4TFEggOY770uBR/Ddn+dxBZlaquA+gamDmwrOuq7JccoCcKmFr RCX+ue/pfhAsa7+Xt3RRaOdilacmWHPAzvKQWfaSv88LXDf+tsrY5crXxDJ9rtxzODM7 dBa4/CrpE1c5aT7q7ixiyZcujDpH3NGoPmOaF10tP2PDpOe/3xiLX3p1aUoT8XEojD3/ PrxKPwFAuIbn745ktcPE+Slp65a8Z8NlPhf886OtudoiDGn1dess2/0rJuEyleDVuI9V 4+5zTgyC9bt4RPWVM3Cw6wHa5FYvk4PtbcuDp7swwSnw2HaL1woMZHWb+VOHkIhOG5Iz EwnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=evyKndbwepYrq5KDuUy+JWXd6ewoiEHFeL5yHKdiEYs=; b=qtN3luVolYeBZ0JNuS2y6YTudetk6OSJ853SwWOlnzUS3jVkd/zAyIneUgAbLI5PsH D3vFxAMA1SRJIwLk68X7zfPRUmrvtJ90TigsUvjMNvziV6Jhup0Kunsj/2ufa3SxX6UI WsEQn3v0+wGdcVOUvNkBJ3kHhFHH6aJmFMNMFUII57Ov2ZuNnF68Yvj2SaQEW6r+44mU 7m5GlWsQ77BOAy0aLrA5KSlt5Zrmar3mQxfdhQ/uLwORGtDz53EpRd1R5h5Q7ZXvxYPd cehHrCWEjcX7+WbVquitjoYw77WBL1ncv2c+AnxmorxvFihUEG1kKUeOKbuyJZvA6KOp PnaQ== X-Gm-Message-State: AOAM532vUUo9wf5A9x5y8n8Q/TTeMemut3qNIcsu5Wsf82rGq8496UyF NyutHmMDFYHVx7VeWY55kpg= X-Google-Smtp-Source: ABdhPJwESH4h3miSObDUehJuAA8T74d94kZXzEuI2P0OkTB/PfkP0mJLdViTHTiY9OWWeAsi4wBbYw== X-Received: by 2002:a17:90a:2e89:: with SMTP id r9mr9348978pjd.82.1602172633106; Thu, 08 Oct 2020 08:57:13 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.57.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:57:12 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 094/117] cw1200: set fops_wsm_dumps.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:46 +0000 Message-Id: <20201008155209.18025-94-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: a910e4a94f69 ("cw1200: add driver for the ST-E CW1100 & CW1200 WLAN chipsets") Signed-off-by: Taehee Yoo --- drivers/net/wireless/st/cw1200/debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/st/cw1200/debug.c b/drivers/net/wireless/st/cw1200/debug.c index 8686929c70df..bcb8757c34ae 100644 --- a/drivers/net/wireless/st/cw1200/debug.c +++ b/drivers/net/wireless/st/cw1200/debug.c @@ -355,6 +355,7 @@ static const struct file_operations fops_wsm_dumps = { .open = simple_open, .write = cw1200_wsm_dumps, .llseek = default_llseek, + .owner = THIS_MODULE, }; int cw1200_debug_init(struct cw1200_common *priv) From patchwork Thu Oct 8 15:51:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824001 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DDB7EC4363A for ; Thu, 8 Oct 2020 15:58:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7946220B1F for ; Thu, 8 Oct 2020 15:58:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EePmbiHc" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731185AbgJHP5l (ORCPT ); Thu, 8 Oct 2020 11:57:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731359AbgJHP5Q (ORCPT ); Thu, 8 Oct 2020 11:57:16 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88C33C061755; Thu, 8 Oct 2020 08:57:16 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id h6so4665783pgk.4; Thu, 08 Oct 2020 08:57:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=V8fy3Kq8sOrYayDD4gS9i4nmIERqbx+Dqf5lZvfV3Bg=; b=EePmbiHc47uDLXXl0zRfryPRMckVgANu0pwOg+QUHn5bBSVMbEmqKDX01E2p+9g50H K2GhUjRa8K7vqX8kxebJjkElC3q1YWGav8cnwQod1P9Y7qZXKCSGYoqlaqt0oSSS88uH 1Ku43CvzCDMIBmrQzzZrdAxF5w+8KfGStrBTEAvI++uJwoo3POmye3iif9m097H9/K/e ieJXkQuw1pcbspfsL73kQtt1IsY7zsmPgiRALE/TiXnAAn+CrGq4bYUqCzehGsDFIYB9 OK7ZcCvqZ62O0OXnl6c8kmqyCSq+8MGa94td9SHNtsilN0K1iboAmQPHIiJj60VYo+8c sypg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=V8fy3Kq8sOrYayDD4gS9i4nmIERqbx+Dqf5lZvfV3Bg=; b=ZgXs3HhvV8vRg+DypgPsWTXkCTcsAlI6gdRlJVjfbDIIEWKNCh+Dtkqi+vT3uBrDSG g+pbX/BLio63bYLTQuargoUFcKe92C5HNoTFa0T+l4Wwn7ddhZl0p13+SouOuA3NDtoT U1ruRk+SV/ozk2q3n3Oc7Esj7cacml6uy+nD1J0mvRnsBbO9Wd3G/VGvub4yrwZ6V68V gP5yiDMqWciOff8tCtfKKaP4zjeZlL+QwN8mRsE9pVFRCEOROTlZ9HhFCkxvHmsF4hlG lD9MUNXgkRZYOuTQHKK2JZyWgavXGyIB8QV51ZspGBUKxDC87xX6KvBiok13uuG48Ux1 VBLw== X-Gm-Message-State: AOAM532QtOEZm2ISa0/c06GRmvQQt2Q/Y+G8a8+1XTE7DiCJJw26KWY6 ivXnD5VX4/h1JfuAeaKlFNAu3WUcITI= X-Google-Smtp-Source: ABdhPJxh0OekccuQuEQMrKjOggvT8ShtjjNmea7neH/zGjSLzE3cpaaf53cwAhi37TwNdjVK31jVeQ== X-Received: by 2002:a17:90a:9904:: with SMTP id b4mr8166498pjp.223.1602172636099; Thu, 08 Oct 2020 08:57:16 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.57.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:57:15 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 095/117] brcmfmac: set bus_reset_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:47 +0000 Message-Id: <20201008155209.18025-95-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 2f8c8e62cd50 ("brcmfmac: add "reset" debugfs entry for testing reset") Signed-off-by: Taehee Yoo --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c index f89010a81ffb..f3d358a1aa07 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c @@ -1184,6 +1184,7 @@ static const struct file_operations bus_reset_fops = { .open = simple_open, .llseek = no_llseek, .write = bus_reset_write, + .owner = THIS_MODULE, }; static int brcmf_bus_started(struct brcmf_pub *drvr, struct cfg80211_ops *ops) From patchwork Thu Oct 8 15:51:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824059 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6883C4363C for ; Thu, 8 Oct 2020 15:59:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5BF7820B1F for ; Thu, 8 Oct 2020 15:59:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lQk2Ngmo" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731409AbgJHP7M (ORCPT ); Thu, 8 Oct 2020 11:59:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731277AbgJHP5U (ORCPT ); Thu, 8 Oct 2020 11:57:20 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18400C061755; Thu, 8 Oct 2020 08:57:20 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id a200so4331358pfa.10; Thu, 08 Oct 2020 08:57:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vvc+gmlWaLd/NazlUIQ4wOqeiliYouVFUVS4Xj2GMQA=; b=lQk2NgmoOtQT8zsvBIYFXLZFSG9zQwCm9vpLkpy3WwKTxsVXtABZbbZSwKoo2dwb6R NmaVZ2jS6k2wg7UljfOcs+pKPyx5H6jE0qiyd24lQzRM/+hyehTTs5sQglXSWDkcyKbD fQU33XhLPZW7PLqUzwggNwrkQ2o8dArWHXUuoEVKYpy/+yElmciPhpEEUO9088VlZ1AN eTbhsLh1kmkhjJUOtwcuUAa1s0MZAKiis0ICokAoJSIavPWoTMNGD3M427NiusNTgqbH a2GxAjLCTnjveBvteZm+2znl+E4FyfuO/cmD3aBSDBs/lF0zHS6wEgMl72lqpsnqk+7n cJAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vvc+gmlWaLd/NazlUIQ4wOqeiliYouVFUVS4Xj2GMQA=; b=TcE/f+y3NEQnUHMryZkLzJ07BeNUazLK9o5kXlbkRmjHK5U3c+ppIybKRofisIFh2/ gA20TXPrz12AXuk1V63FiRbli4xHXtp6rRO7RGbZ1hb8VPIyhCdVA30C90h919T62MAF TssmPbhFPx1NtNU2v2J5IQ6jLoXQ1w9JscGmPwLNK1/5jdm9jvlMdWP2hhPe7+EQPLkf 9CHtnuDr97yITkvLoJTs94SXAUaAogogHEAReYYe7qKH8M0hJsUtQoJpxYtmPg3MQHm7 fxpqXOw0XF492tZJeYUOAWfHjrEUCuZHjXVMXDhlznQ8DWUKr5szV1TflZyOId+UKA9k pmhA== X-Gm-Message-State: AOAM530pnunFst+hAX/gF+Xa8Shnjaa/tL8MFyhQk0Fb4iO3UotFZLNB FSk8hnCm5WjBONoU/Z3yZOs= X-Google-Smtp-Source: ABdhPJyjF6nhCOw6ehr/I+coH9XQEJEWSgJXVoSMAj+Aqoj05pURfpxUOlH0iz/N5uiLzG9U2KKnow== X-Received: by 2002:a62:830c:0:b029:152:3490:c8e6 with SMTP id h12-20020a62830c0000b02901523490c8e6mr7876320pfe.6.1602172639629; Thu, 08 Oct 2020 08:57:19 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.57.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:57:18 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 096/117] b43legacy: set B43legacy_DEBUGFS_FOPS.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:48 +0000 Message-Id: <20201008155209.18025-96-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 75388acd0cd8 ("[B43LEGACY]: add mac80211-based driver for legacy BCM43xx devices") Signed-off-by: Taehee Yoo --- drivers/net/wireless/broadcom/b43legacy/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/broadcom/b43legacy/debugfs.c b/drivers/net/wireless/broadcom/b43legacy/debugfs.c index e7e4293c01f2..7c6e7cfeb822 100644 --- a/drivers/net/wireless/broadcom/b43legacy/debugfs.c +++ b/drivers/net/wireless/broadcom/b43legacy/debugfs.c @@ -318,6 +318,7 @@ static ssize_t b43legacy_debugfs_write(struct file *file, .read = b43legacy_debugfs_read, \ .write = b43legacy_debugfs_write, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ }, \ .file_struct_offset = offsetof(struct b43legacy_dfsentry, \ file_##name), \ From patchwork Thu Oct 8 15:51:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824053 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9EFD2C4363C for ; Thu, 8 Oct 2020 15:59:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 429E020B1F for ; Thu, 8 Oct 2020 15:59:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AQxGsIKM" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732026AbgJHP7K (ORCPT ); Thu, 8 Oct 2020 11:59:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731022AbgJHP5X (ORCPT ); Thu, 8 Oct 2020 11:57:23 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 138D7C0613D2; Thu, 8 Oct 2020 08:57:23 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id g9so4653571pgh.8; Thu, 08 Oct 2020 08:57:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CaLkc5S5r8gSYs29OL2G0vSN6v5EU5CqRKTlV3j+mYY=; b=AQxGsIKMGtEnJ858YgNSUlOBvPyn9/jeLJ9IZz4BDSvAwio3m+LC+8Fa8y3j5dr5gT VM1UkMv6hf4CK+Ax/SB/f9hd9iaxSdQOiqW91mqR27B1m+j//78GOw5frnO2ix8guo9+ BWNvo/MD2tUOfe8v0Xc/nFIy1lEOD269yDqzkqZt1/0kJKwltNIgpi+w+dprF01VzlTz zlzfrq4wsYPOeXydpsRtBewDmbWh2TuR809Hu9JW0hCVeM4AfgO1q3VhYYQf/ESvxxDX FUsmgJZGn4koWpuIlzgXGu8+WyslW+bbe91MnIgdIdBqsY0LPuPrztoQHN4VG7bmCltU z3NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CaLkc5S5r8gSYs29OL2G0vSN6v5EU5CqRKTlV3j+mYY=; b=qRXB/ecjR8xcpbR95u2EvKOnZOeM0X9zL3vs15glScNO47tepkCC7gQMQMsTkRCs/8 qb9omva4wze18lxjVHQTGNbaKHFq0dtruNfhr9bDqevkL/O4oWJDsswU96g9LeR1A+D+ 2+dBEWelOiwpnjQLSVUAZwzuKR0rIM4lTnghHhhXkV6pdcpGKK2Wqpw8mqNBfoadovhH 06r1ULeYpNDNGV3/Vyyu99mECmMO1e2TI07hfungTzzrw+t1Y5YCNlaKau1qO86edMPL YhFSO9nrv+IhVmjyBo+JJoh44qIZRolZA/wf/HY3oahiJGPl7YHHxe3fXuo7EKZ5NcWq 9d5g== X-Gm-Message-State: AOAM533gL1WZu3bOZX3qp9Sl9zixqGOZGSRYAGzDPBEwSDn3vg0uPnB6 5Wt0Huog8BljMCdM4qIt0C4= X-Google-Smtp-Source: ABdhPJwCdhSC6bolvS/nyhvC95zl36KHGmPOYCB8R7gEKtsb0aciVCUS7r6O+gCj16wF5c+/xYCQkg== X-Received: by 2002:a17:90a:1704:: with SMTP id z4mr8767715pjd.7.1602172642647; Thu, 08 Oct 2020 08:57:22 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.57.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:57:21 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 097/117] b43: set B43_DEBUGFS_FOPS.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:49 +0000 Message-Id: <20201008155209.18025-97-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: e4d6b7951812 ("[B43]: add mac80211-based driver for modern BCM43xx devices") Signed-off-by: Taehee Yoo --- drivers/net/wireless/broadcom/b43/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/broadcom/b43/debugfs.c b/drivers/net/wireless/broadcom/b43/debugfs.c index 89a25aefb327..c0d51cb57b27 100644 --- a/drivers/net/wireless/broadcom/b43/debugfs.c +++ b/drivers/net/wireless/broadcom/b43/debugfs.c @@ -611,6 +611,7 @@ static ssize_t b43_debugfs_write(struct file *file, .read = b43_debugfs_read, \ .write = b43_debugfs_write, \ .llseek = generic_file_llseek, \ + .owner = THIS_MODULE, \ }, \ .file_struct_offset = offsetof(struct b43_dfsentry, \ file_##name), \ From patchwork Thu Oct 8 15:51:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824057 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D853CC433E7 for ; Thu, 8 Oct 2020 15:59:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 832B421924 for ; Thu, 8 Oct 2020 15:59:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FeGsgG5Q" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731750AbgJHP7I (ORCPT ); Thu, 8 Oct 2020 11:59:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731923AbgJHP50 (ORCPT ); Thu, 8 Oct 2020 11:57:26 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1213DC0613D3; Thu, 8 Oct 2020 08:57:26 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id 144so4345336pfb.4; Thu, 08 Oct 2020 08:57:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ASI6wH+LVV7iTtr5dwHBwqJyLXzURutB+W9jf+xwR/E=; b=FeGsgG5Q7E5CM4RBYmrnBjYW+0i3TPfkuKavrfI98XHsSqyHWrqos2nmTyXgwwa1vw poxktwlq14I+FqycSKin7JkYi4fvhemd0AawwpuQnRv9UMPp7C3JefH8FJ3nQzXg5SJe UpIUEI7Z+dq+MQi3bekJLfV+/eipJZCBZRldS63gsSEKR9/9kkOy/+W17gF6g+NBSlQo CsphCzgqqA0fm4ofiH3LybLrgoO8z3QZlt2yCYIxvE2Sol8l4SIy2ChKF77dGJx4PDhL PXJsZ1euZPglTA6LfwXtDPUyRXm+/DuiPo6OttMww7C24CpFg+GcpJQostdZrNd7icZH buwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ASI6wH+LVV7iTtr5dwHBwqJyLXzURutB+W9jf+xwR/E=; b=Th0cpY+/d0kJkmLA4bsjrpUij9vhMm3uFIAKiWI7InHkngKj+pn1jfA5VoYY5oLxxC XLyj0VHHGVk8UsDGPNFRQHzvNfHjRCS7r2t99SYDLYapwighHDOvwcIJZ/qIaojBX+Cd 13h0RxNxCmxyoEOCthC1y00zVxBeRlZrtYUOLvzd+g+gb8rDDqz6g9NmA8JqpMG1S1yU puhmG+wk2qK8pXpRFCxdF5axQQqp+MqowB+64km+88s/tqihmHKkYrI/lo9LGfIVzE6N x0yvrvCgjohZLwcQj4nT4OiZC328UQABAZ2c+U2n5ETOTiNmY0ErhVk/mUaBT6gMUXJ7 iQBQ== X-Gm-Message-State: AOAM530KM0flsH797jfuGLHaw3PJe1xpruyfMY/bxQfCtogLFFcFPi9s B77S47TD6ozkK/g3zxFWvlw= X-Google-Smtp-Source: ABdhPJwWADfef58g8/KwxAc4cXnxkoiPyYfYEb3d2rOWB0n4k/4PP/oRbJXBUSG3TJb17glV92R4bg== X-Received: by 2002:a63:d6:: with SMTP id 205mr7788791pga.309.1602172645650; Thu, 08 Oct 2020 08:57:25 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.57.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:57:24 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 098/117] wireless: mwifiex: set .owner to THIS_MODULE in debugfs.c Date: Thu, 8 Oct 2020 15:51:50 +0000 Message-Id: <20201008155209.18025-98-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 5e6e3a92b9a4 ("wireless: mwifiex: initial commit for Marvell mwifiex driver") Signed-off-by: Taehee Yoo --- drivers/net/wireless/marvell/mwifiex/debugfs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/marvell/mwifiex/debugfs.c b/drivers/net/wireless/marvell/mwifiex/debugfs.c index dded92db1f37..641113260439 100644 --- a/drivers/net/wireless/marvell/mwifiex/debugfs.c +++ b/drivers/net/wireless/marvell/mwifiex/debugfs.c @@ -931,18 +931,21 @@ static const struct file_operations mwifiex_dfs_##name##_fops = { \ .read = mwifiex_##name##_read, \ .write = mwifiex_##name##_write, \ .open = simple_open, \ + .owner = THIS_MODULE, \ }; #define MWIFIEX_DFS_FILE_READ_OPS(name) \ static const struct file_operations mwifiex_dfs_##name##_fops = { \ .read = mwifiex_##name##_read, \ .open = simple_open, \ + .owner = THIS_MODULE, \ }; #define MWIFIEX_DFS_FILE_WRITE_OPS(name) \ static const struct file_operations mwifiex_dfs_##name##_fops = { \ .write = mwifiex_##name##_write, \ .open = simple_open, \ + .owner = THIS_MODULE, \ }; From patchwork Thu Oct 8 15:51:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824061 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83884C4363C for ; Thu, 8 Oct 2020 15:59:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2CA4220B1F for ; Thu, 8 Oct 2020 15:59:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="P/kdRczr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731206AbgJHP7B (ORCPT ); Thu, 8 Oct 2020 11:59:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728421AbgJHP53 (ORCPT ); Thu, 8 Oct 2020 11:57:29 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EF87C0613D4; Thu, 8 Oct 2020 08:57:29 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id r10so4648939pgb.10; Thu, 08 Oct 2020 08:57:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hPliT890mbJ5bRvZSxNfpybizEbQNJRv1wlZIAFTGLM=; b=P/kdRczr6kK7YPFrUwbPWIq21on3eMDIQQ4xwR8gsOnCzffLwWoXjhBnSyFdfaMhKh CRnINi2jER4wFSGIRBRjcZpWu7M+BzSb5fIFoygWDf1DwQYioywMmT5IEq1KI/Bslasl e2tdB2cil7OvfJ28Hy3Aar0mzvoM4XgsRcMtw8kWiHkCU/4Wd/EtMwUCiFeA1iQooSWw PkmnWoG71bscY5B/ZUbRmcskNWNvbQlWNZOOmDFonpF5y3BkUfywrsyGHCX5msq+HBok KSr+8tgvau2KScbjDgwZDkPkOeGOqRS1ZSPANwRn7mSW4jsI2jqNVTZjouV8xSj1dDam Z2Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hPliT890mbJ5bRvZSxNfpybizEbQNJRv1wlZIAFTGLM=; b=AzAJLEp3cB+ZY1swSxEe+qOx97OrVxUrI8pWi/IUy/B0hIKY1gcdFGXE7jmNhTP+S2 wp6XS1lLoBx/2WvXIs3VRApx+iMywadRe6NF9ehN5ozJ+wZDwiopvRY14R2O6XEExlkK SRzETpR0otPev+mJ5OF4rxDiDwCuPOkjiYP1ZL6dpfdxcaYGWpA369H90lKrfdw8t8cL wamXeDNvKuxKcwry5jigTRgEl7ofeJ9K4Xh3sBmBrW7TdFdGVa36I/BUskLqkKL+s40S uhqGgSb104Y61hTFNCOuO0QsvoI9IMqZE/Zyphll7JtFdL41GHpZXoFBV3dtxkjWu0Yu CcuQ== X-Gm-Message-State: AOAM533dDG05J+E9wC5njKO8/gV3bt5075pQL6LCne7PNhSyIq3VvS7l AGrHrCZM07+IC1W3aPruC34= X-Google-Smtp-Source: ABdhPJxDzkN6ZWJ7vZjzCOp7Nwq97h9hg6R6AzOKUx0tMszkjMUR3I7sPiYpi+z10EBguv5WvojvNQ== X-Received: by 2002:a17:90a:9415:: with SMTP id r21mr8958738pjo.180.1602172648689; Thu, 08 Oct 2020 08:57:28 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.57.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:57:27 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 099/117] net: mt7601u: set fops_ampdu_stat.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:51 +0000 Message-Id: <20201008155209.18025-99-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: c869f77d6abb ("add mt7601u driver") Signed-off-by: Taehee Yoo --- drivers/net/wireless/mediatek/mt7601u/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/mediatek/mt7601u/debugfs.c b/drivers/net/wireless/mediatek/mt7601u/debugfs.c index 300242bce799..03f7235a90ab 100644 --- a/drivers/net/wireless/mediatek/mt7601u/debugfs.c +++ b/drivers/net/wireless/mediatek/mt7601u/debugfs.c @@ -84,6 +84,7 @@ static const struct file_operations fops_ampdu_stat = { .read = seq_read, .llseek = seq_lseek, .release = single_release, + .owner = THIS_MODULE, }; static int From patchwork Thu Oct 8 15:51:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824005 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ABA0AC04EBE for ; Thu, 8 Oct 2020 15:59:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5438A206F0 for ; Thu, 8 Oct 2020 15:59:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="I/yCldQm" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731435AbgJHP67 (ORCPT ); Thu, 8 Oct 2020 11:58:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729249AbgJHP5c (ORCPT ); Thu, 8 Oct 2020 11:57:32 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32756C0613D5; Thu, 8 Oct 2020 08:57:32 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id b26so4352945pff.3; Thu, 08 Oct 2020 08:57:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=b5XH8VB0Qc/fJW/TLis8ZtXssZ0nTmQ5NAZeJ30/k9k=; b=I/yCldQmgyTcFnF/2uTiFisKzEgLO+jXPAEAFN22uwDyFMcsL8eXy6FrBhze8yHA5G BPfVGCs9yHXlT8RmFOI3INNLn6JRhcc3OyeQKjVIj/2Dc/+ueIg0GzDzZI6fbw8KF+bt A/EKqFRWgnp5PWtsh7vikCBmLgxvd8eTO16X+ef4mP1OgeRUr3K2AO8XGt1K/n6SODSw S2pyAfDYHZbdOEc0uWIcYyznji6FZ8/Vy61T2KM9gnOS6rLa3d68LmgxrAk6sE6rJGOo rzfHYEBoPvYhWlwEDKO6LCiG2WHLlUDkIzCEukyIbTNWegq2ojjnUz6zPzaxUnrfBi8x /Wxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=b5XH8VB0Qc/fJW/TLis8ZtXssZ0nTmQ5NAZeJ30/k9k=; b=RjEOEtiHluTXXEFoG7fZHdyjCb2OkU+Ea+y4LVl/z1G4cOq2eF3W2cHjzNCFuHPwAm kzeKCXTKPxzogCrQqUIz3zPb6QZpBOVbeMnHk0uiGURavFmLaOoVr/wnyY69/BFM287I PuX/mU58j5sctXDo60qKBk5vJVGeUaMFOSMweLRgwYvRDPLf53s0S32mx2PeqkODIfqj weg8/XOQRTM2it1ggcNGUsoS8Duwe6zWVlOua2dbTT+yr8BqQ0X58kjsi2xZ++5N+lGV 6ZSs2spvtzZmk326tEdWf7iWi00Ar/pqWAvMMz9gp11JPBX/Rw1BcpnmSvAuT5YcYh/M J7og== X-Gm-Message-State: AOAM532I41JdDzMYXmRlf/lCehe64BsaqG/eavyVepNM0WJH3pM8k1vg UxrXB0ryXdS5JjxHTh1JF6E= X-Google-Smtp-Source: ABdhPJx8EkzDFXVeswhPWDjNIVZU2LLE6jNldSEO99k3w/+DquRYaqMnz5ZD7p5kghXtmn/EaAl83A== X-Received: by 2002:a17:90a:1ce:: with SMTP id 14mr8985881pjd.209.1602172651735; Thu, 08 Oct 2020 08:57:31 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.57.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:57:30 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 100/117] net: mt7601u: set fops_eeprom_param.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:52 +0000 Message-Id: <20201008155209.18025-100-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: c869f77d6abb ("add mt7601u driver") Signed-off-by: Taehee Yoo --- drivers/net/wireless/mediatek/mt7601u/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/mediatek/mt7601u/debugfs.c b/drivers/net/wireless/mediatek/mt7601u/debugfs.c index 03f7235a90ab..3edf153dc68c 100644 --- a/drivers/net/wireless/mediatek/mt7601u/debugfs.c +++ b/drivers/net/wireless/mediatek/mt7601u/debugfs.c @@ -143,6 +143,7 @@ static const struct file_operations fops_eeprom_param = { .read = seq_read, .llseek = seq_lseek, .release = single_release, + .owner = THIS_MODULE, }; void mt7601u_init_debugfs(struct mt7601u_dev *dev) From patchwork Thu Oct 8 15:51:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824003 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19C41C4363A for ; Thu, 8 Oct 2020 15:58:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A99C320B1F for ; Thu, 8 Oct 2020 15:58:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cLARU4vW" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730858AbgJHP6r (ORCPT ); Thu, 8 Oct 2020 11:58:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731653AbgJHP5l (ORCPT ); Thu, 8 Oct 2020 11:57:41 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76890C0613D7; Thu, 8 Oct 2020 08:57:35 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id h6so4666496pgk.4; Thu, 08 Oct 2020 08:57:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Ggn/qqDw5Ps9lvylNXGZ0/oCC+xNhAV2tZzyGJTLKUQ=; b=cLARU4vWvjD7XtiOATtJAR8hR/atiOfgHm43HPtfU7ygeCzWU6Xw1bY+N/WMIajuye iyxBKajfAS97/sG5JlOVywO87Zr3QWYDKtBgNiPFBzcPd25XNiGj1gomdDiyaOf0s4F0 Ie01VjXpfXzhODLZaKxKP+aIeHaXLoW+2WHoGlDoQOTkoskCgW8jbMpQeU03qLA8UP55 k68iTo1hLbCYn1N/K/UbpGlA4quhaKiEd2FdB75xx/xxT2POCnThb63fChsETjz5GJTC jVaQ66lEdj1CCjeBWen1ZOQ+CGsnzkJ1OHmX84h4pdYKI5p9EEjEfixm7/I6ZYNxgK/T wCSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Ggn/qqDw5Ps9lvylNXGZ0/oCC+xNhAV2tZzyGJTLKUQ=; b=h4oXof2LMjmrOZDgJ0q/zMRZVI7DZrZAlNMXwKhhx59+Ise2ta8UHk/yvFxhMZ5ua8 o75drWhXTdRIspzlw5wLS2lZOWRFb9OpFsLStwKoLvQ2+Qs8yH/BcfeE/8f1xtMuIbmH lD6qA+eLpmqo83Mu+g5O5zN+DhSqaZ/+398yjaYaj852NoeTWeUq+2ZqVK6Y77xZDRJz bP6mSBQS8ucj83kmiPkf+WqTudJIhtl7XasOGHxacfmZaTvHFk5Ri47AK35WANfDkwRT KGI42IuvmLpzAuFxzveaq3BrH2XFD7iz+ewrAwirz3hIQfIgX0P0ylzMJkI6DVOxH+0j 5w3w== X-Gm-Message-State: AOAM530Ahd5ZtvO2zKbq4c2MS3tm6j1x/SzGMzamtpOjUE0awnBsF+VH TGPlU73819R1zahHcTwzzC0= X-Google-Smtp-Source: ABdhPJx5cbuVpFRB6D8mk5ytn1H0QZcgNWFNr7Bb4JCuBaVfNfXRtB5y9ZuKvmBiv7sMoYLZQhMkVw== X-Received: by 2002:a17:90b:118a:: with SMTP id gk10mr8427702pjb.218.1602172654767; Thu, 08 Oct 2020 08:57:34 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.57.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:57:34 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 101/117] mt76: mt7615: set fops_ampdu_stat.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:53 +0000 Message-Id: <20201008155209.18025-101-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 75601194a1c8 ("mt76: mt7615: collect aggregation stats") Signed-off-by: Taehee Yoo --- drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c b/drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c index 88931658a9fb..1770fa51f562 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c @@ -246,6 +246,7 @@ static const struct file_operations fops_ampdu_stat = { .read = seq_read, .llseek = seq_lseek, .release = single_release, + .owner = THIS_MODULE, }; static void From patchwork Thu Oct 8 15:51:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823925 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA216C4363A for ; Thu, 8 Oct 2020 15:57:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 80F36215A4 for ; Thu, 8 Oct 2020 15:57:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="XqV8UMUC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731961AbgJHP5o (ORCPT ); Thu, 8 Oct 2020 11:57:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731929AbgJHP5m (ORCPT ); Thu, 8 Oct 2020 11:57:42 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C946C0613D8; Thu, 8 Oct 2020 08:57:38 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id f19so4326938pfj.11; Thu, 08 Oct 2020 08:57:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YqAJZHZtPZt3y+aav7S3myXA+GDLw0nhSzEfUGaYfeM=; b=XqV8UMUCnTMb5YLgD/gJydW8cPO8/PgfDDXPRIxvh6d11bwolQQMm7F9AU5SkEDLDL msmlElIvJSWJDjDpriiuAL9T5qqjoHri3kD/N138FhiCbR90+ucedvFwWADCy7MGuikV VWtgwOQ9ADIfqDuXDT5PBoV+3zr78qMIyMmfNpZRPzcKL6prlh+b41IWFAF4xWcgcbg8 1Vemr4n81qtwLZi9Nak9NDaWpNxtv0EsxhQZPLLwMvlhXbK9NChZIXFuFRrgREXITZna aUVwz1QLf2D/EbSatPBMt1opcM6fPJ8wqSv6GLb0t7dq//o/r9Q4FEUY+p9H12pzyNWT gaDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=YqAJZHZtPZt3y+aav7S3myXA+GDLw0nhSzEfUGaYfeM=; b=fXWJRuTP6J4C9n33cAoDMFG22S6V5MUZg9Ilesmc9RzKPMLnytPKKHUKKPKc7vz3YQ OVIooF+hPwjB+xRPXkJLGamMYKs8/MUFPdiwEgP7m56tUEU3CXbsW+G+NqGwURvJ2Bsn HRITe9nJJK9zTBFxSx5DKzgX48SwO8fOBAV6kfZBpz0wF94rSEzAejIkugob+hxLM1rz T43k8oSMaUGdiWJvjD+VWfNIniZzwcu/OtRb5CkPiXVCfw4k1cUrPEZ1n2w1th98JZSt JdGvF0OEegvDVsV8fku0NdlulfcfFtqtNzka6A9nMPfRUa86bLsp3zp+bnEYUTE4Wc02 o7Gg== X-Gm-Message-State: AOAM532AQfyE1NDfTeavAs3HlbMB+xvARlxUfLaLzXm35G27BTmfXy7Q UnpTXuEUKiA0BYVVG3EhhCM= X-Google-Smtp-Source: ABdhPJxuTQRMJDNb/VkGNUhXszcq2hcRAOtrVwql+kXMG3JDn7Bg9IkrWP9qmQw2PB6yyCzQweJqwA== X-Received: by 2002:a17:90a:6443:: with SMTP id y3mr8725837pjm.150.1602172658136; Thu, 08 Oct 2020 08:57:38 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.57.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:57:37 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 102/117] mt76: mt7603: set fops_ampdu_stat.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:54 +0000 Message-Id: <20201008155209.18025-102-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 5a8d4678e02b ("mt76: mt7603: collect aggregation stats") Signed-off-by: Taehee Yoo --- drivers/net/wireless/mediatek/mt76/mt7603/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/debugfs.c b/drivers/net/wireless/mediatek/mt76/mt7603/debugfs.c index 8ce6880b2bb8..af6fb67a6f7b 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7603/debugfs.c +++ b/drivers/net/wireless/mediatek/mt76/mt7603/debugfs.c @@ -102,6 +102,7 @@ static const struct file_operations fops_ampdu_stat = { .read = seq_read, .llseek = seq_lseek, .release = single_release, + .owner = THIS_MODULE, }; void mt7603_init_debugfs(struct mt7603_dev *dev) From patchwork Thu Oct 8 15:51:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823929 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 353C2C4363C for ; Thu, 8 Oct 2020 15:57:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D13D4215A4 for ; Thu, 8 Oct 2020 15:57:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BgqevvE+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731965AbgJHP5q (ORCPT ); Thu, 8 Oct 2020 11:57:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731927AbgJHP5m (ORCPT ); Thu, 8 Oct 2020 11:57:42 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97A0FC061755; Thu, 8 Oct 2020 08:57:41 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id x13so1724646pfa.9; Thu, 08 Oct 2020 08:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZcJvpCxZ9I2vMvuvbdBZLufH22DuxRSXW7G/b4Gx4qE=; b=BgqevvE+jeD3439VKy7MbG3JZ7kEjYY4WJM5FdSKThC5Yfwt89+KzH5I+J6LmxcWT1 FBZO/BfWeApkJCQ6RT05ftnRUU4f22KFGw/xQHqKe851dRtfFByI/TA47vN5GiMQElGi PqzlO6DRL0dCoRVNNLCmb8K3nVvWsTw63PIW1clxT3zdYbNTn/M4hu0fHoxC2+Nupuhu 2yfDgZnBX+syDgTJ5caRfNUxj83RaxMCEFKwNYKKyZIKwAxZh7t9KBjEjboGZfbegvVK i2RI0JGBzMluLwyWS9G3FUF/rdutWRKjDF/9E5cgectFr6cvkmdqJQvHCMVkiFQ+zmO6 RvIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZcJvpCxZ9I2vMvuvbdBZLufH22DuxRSXW7G/b4Gx4qE=; b=BRAocvlpMH9AyZ7FFzF2d8wsIBYqHw+J2PUKCwK9AaO33o4NJwg9DBNfR3suIS89Fw GjkP4V8RsNtWloiFerTMluEigxN0b+kc19ZHCb0Rl+95pXHSZbY4RB5eLr6NTAmfs/uu GvjL4hSkclpm4VhbWCcK7V7UOta7n2RnRr/yraEkKjg/M8Cx0yUwHx0T1jQkS8mzL+h7 5VDdp7xgY0NcxcaS+cpN+JkNgObEhfd5Sv3d28+/ikGkHasb5eCxIiGDcVPD+gJd/qqi F9Zp9rYJi2M8Ss5z1nTMGCxij+KvtCVTkx56Bma78p8hTefFFbop/2rf1ksAR1f6esWt azfw== X-Gm-Message-State: AOAM533+UjT/NlsaL+NUf2MO1N2uMgapi71Epj4VIkr/GNOwkSdykJi0 N/zirAmIgMAtyacyDb9EasU= X-Google-Smtp-Source: ABdhPJzYMntBzjPM/ADyty0EBrnqpblHKEG1q9Qm7PrriQgle1UYKPFNNYPi3JUcDgNKYdWax9QkOw== X-Received: by 2002:a17:90a:6343:: with SMTP id v3mr4609310pjs.109.1602172661135; Thu, 08 Oct 2020 08:57:41 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.57.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:57:40 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 103/117] mt76: set fops_ampdu_stat.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:55 +0000 Message-Id: <20201008155209.18025-103-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 7bc04215a66b ("mt76: add driver code for MT76x2e") Signed-off-by: Taehee Yoo --- drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c b/drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c index ff448a1ad4e3..7d7247a9b3ec 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c @@ -53,6 +53,7 @@ static const struct file_operations fops_ampdu_stat = { .read = seq_read, .llseek = seq_lseek, .release = single_release, + .owner = THIS_MODULE, }; static int @@ -92,6 +93,7 @@ static const struct file_operations fops_dfs_stat = { .read = seq_read, .llseek = seq_lseek, .release = single_release, + .owner = THIS_MODULE, }; static int read_agc(struct seq_file *file, void *data) From patchwork Thu Oct 8 15:51:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823941 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 427BAC46466 for ; Thu, 8 Oct 2020 15:58:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E913221941 for ; Thu, 8 Oct 2020 15:57:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="m/iCZrSK" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731983AbgJHP54 (ORCPT ); Thu, 8 Oct 2020 11:57:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731929AbgJHP5o (ORCPT ); Thu, 8 Oct 2020 11:57:44 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3F1CC061755; Thu, 8 Oct 2020 08:57:44 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id w21so4343949pfc.7; Thu, 08 Oct 2020 08:57:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VzmpAj3/XydPcNzFnXx4Q2UcRZu6Ce5O73ll1dCz4ho=; b=m/iCZrSKXpxkTgzjwKsdwGuPDjMQOgY52x3yeBwI7NDJLmIR26tZ3HYpJs0RjhhZi/ 3hWT9Y8R4GduQQ2U7MWqFTnir3+bzxKHbt1P4ZmTY2niaG9YWlDHTeHi2h7h1U7JxbUC OLlezOS4++WmV4wudIQfOPMGm4NDFVwAVvTGIzmiC1x7mKPomAJxrpOmfB/oFF9MmifR A4QX5Q3Lh3mmJhmKnoDHTM1z4Q5TaZzU72Ajo47aKXy3nQvrk1wvofaLeD6io4hdDNhW VhylhbIKJvJ8syOVbD0HtZ+zkDDl50FjjXTRn3dibE9PJFR0B4r/EslDgeKkE5unzx0x zaEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VzmpAj3/XydPcNzFnXx4Q2UcRZu6Ce5O73ll1dCz4ho=; b=LbgIOEsW7hSj3AjSIP5r0ZmvTxI1ROuV4c/0EX2NHY4KH3zErJhwy4+066BcjVsvSs Bs4TrPEwz5Gxs0EcaxfH755FsX0DIP9HRvsMr5FEOGK5UFQU1vxtUq8HMKlCIgl2s6m4 qfqHK4NoThw3dRngJn8FCe+OmWs/AvIOhI3tb7WJTo+kZN1PBUgtZ9azwFU4FFXMA3Ft t72IcZw7hPMA6PVPIaLgPnLrtDxAI0fYFvrMoNeu1pPbxNynW8+GatQyZJZ+nqGSXH1N YGjH5ujxIzyb1ksdpuHsyVh8GORXgbBmw38zQ8qqfLU5Urh05Qe/kwdDjBq76HKNZA6N N0Sw== X-Gm-Message-State: AOAM5312klifElkAfZpMkoyP4v0Oxq//HHxHoZhcYJKCcsQdBsoAbtVw /CqQhEoyr1hkkSKIVJglRDPASlvBojA= X-Google-Smtp-Source: ABdhPJyEPVEqtT72hdr3zBzaofj0lbgKL4SSMjqt1hcNmO7OYZmwCeFQPFUEZC4jLrLbkGLQ56zoMQ== X-Received: by 2002:a63:703:: with SMTP id 3mr7834032pgh.159.1602172664430; Thu, 08 Oct 2020 08:57:44 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.57.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:57:43 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 104/117] mt76: set fops_tx_stats.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:56 +0000 Message-Id: <20201008155209.18025-104-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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 --- 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 38f473d587c9..31ac338c5526 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c @@ -234,6 +234,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) From patchwork Thu Oct 8 15:51:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823939 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0745FC4363C for ; Thu, 8 Oct 2020 15:58:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9ECFF20B1F for ; Thu, 8 Oct 2020 15:57:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qFe4QMb8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731904AbgJHP56 (ORCPT ); Thu, 8 Oct 2020 11:57:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731092AbgJHP5s (ORCPT ); Thu, 8 Oct 2020 11:57:48 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F126BC0613D2; Thu, 8 Oct 2020 08:57:47 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id o25so4684082pgm.0; Thu, 08 Oct 2020 08:57:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NxnURy1s4bmeadcVdRKZqcVPbgw1zYNZ2MTGOvYb6yQ=; b=qFe4QMb8rFeMJwjDzyAsIw7K9u5YJI7IJn1POK0yfxA+t/4ncVdwo+KJfg0i8DeDQk X/nKdLPE1abCKiQaqReRoL6kht8X3TWeOf6m9rw2lXYpuxfCg8Hra9e0IpOUZRsviJV5 6N3ZHsmBOTRrt7R6w/xIy39hvwmd2mCB8OKHhF/BpAHHgoI+NeIrCYReTqEruo3AwUms QIm5onkgl8FrMJLroVzDDhq/qp3fa/id+7066l+fYIUKg2Og6+1Kkt0eTcb9hsH9cg/U utuLNeqAXXGgek3kRs56nDZLMvipCLphn37w4cjukhDPojzZt719+Cba2xfLHiLQmNMz spng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NxnURy1s4bmeadcVdRKZqcVPbgw1zYNZ2MTGOvYb6yQ=; b=Kwnj7ATyywu2gRuhzarr73PfwAxSR3KJYM4n7yZiseEF+q0GM6ey9Jjqsh+Um90psl Fcxs9h0rAgjraHO0avqBRbLuvlsyMFfD7C6Zx2o9khyTpn3M6Lohg3mXHfHt8bZE1Xqr fyudlCQ7sqn0/BtMk0LZV43nG0CBoXj8h1pKpSBKCxx6tDEaEoLEKRj/ZlXwtUKfLAdx Bv/TYzk3kl7UZPUlGSk0yfA/N74/YPZOA2Xa78Ex1J9DxUAy6epel4QPI/MvKtKp86+K rXh84pBsW9HWDWvLkGmfDbjbxRkHyjPz76T01Z6oTiM0Rz4NDSxSkDEhFYwjfcko+Fwl /1pw== X-Gm-Message-State: AOAM531+mTJAEmqzSzcRwMmBgrzz3QJBtBlZ3pJH700tZQzz6NhGAujo IAJvT2CY4e+PrCw5O3HHb4I= X-Google-Smtp-Source: ABdhPJz82wlyC/FBgJacP82XyDXV85dEMtQmBBLl6szHYxSiicRplJ2iul00yk2eL4iYV7iU2udROA== X-Received: by 2002:a63:5fcb:: with SMTP id t194mr3825125pgb.119.1602172667514; Thu, 08 Oct 2020 08:57:47 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.57.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:57:46 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 105/117] mt76: mt7915: set fops_sta_stats.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:57 +0000 Message-Id: <20201008155209.18025-105-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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 --- 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 31ac338c5526..149686906ad4 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c @@ -462,6 +462,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, From patchwork Thu Oct 8 15:51:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823985 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A88D5C4363C for ; Thu, 8 Oct 2020 15:58:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5398A215A4 for ; Thu, 8 Oct 2020 15:58:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Uns8iLgr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731853AbgJHP5z (ORCPT ); Thu, 8 Oct 2020 11:57:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731892AbgJHP5v (ORCPT ); Thu, 8 Oct 2020 11:57:51 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BC27C0613D3; Thu, 8 Oct 2020 08:57:51 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id 34so4634959pgo.13; Thu, 08 Oct 2020 08:57:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=g/P3d1o6K+7liSK5tnZOFW29VqzJ83c3uAI9iAPQ7vc=; b=Uns8iLgrOdNab0DKl/a4h5IgljoA7+n01g2c0x9ozuuqQtR/DGSo5LdB387QbsGpgh Nvr4fyVIQ2QmKXMqiaySoxaKDSqb0gXp4Tq75A+QDdv9nWsWv69vBY3oC6xTD7Z5rx+T 76foE/jvrw+c0kFH6xjKj3kEYEoQndfqEzV8643hB7uCyYGZw9VBy27x/8Vldd5i4Vfb O/eE80zhE9AhTwGiLC+WAB1Mikw/s3DIrn1+4HnD+hMluIe3AACy7mdLtyj5pYuIw27R 6nx+g6IY+2Mby/Q/yLM4wiT278Ap5EdBiIMy+1dGXjyV7nNyMRB9gDPOBOLZI3R9DnRp /l0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=g/P3d1o6K+7liSK5tnZOFW29VqzJ83c3uAI9iAPQ7vc=; b=cwq2t6BTpOT+kWP7uQNbz5J548JKs/vgLPvsSJUkOEw0rbeEcqTnUYdAuS/WBl72Q0 p/kltl+kZda8h6ycCQdlzTYHpkAl5s6P2cyl1B4rSLYOW3123TCqb3Wo2kuISEduhYDI U3tzsnPho2HM0/RtoOar3Gj84fUO5ncMC/+aCjvMU+Xr88b2u0S2UUitjSSCxYDLt8KR wiXv8QMpBHYbsdBEBNOOGo1rdEC8A/O9ODrQg4g4DdUXcQ0xpiZDctDzeKqAEE8QnAZt 8K2mG0HXd6+aXr5Ryxh6ocRnN6n9h67ptL+b/t7RNHU9KwRqRm3W9TbtfYK5tXjYSGd1 GlpQ== X-Gm-Message-State: AOAM533wxF+bIAKlBXvhvVFVu7jMjTXi3uVOnx2cOQYdVHBnGrtIA5AX bG3P+NnntyNQm4Si0t2WsHI= X-Google-Smtp-Source: ABdhPJxDzCULo0sZ8Ln7UbDE2JAQKX+Ad7qA4rJ0F9sQNQ0x4JMbaQLI5d1/lFhg1cuJd/Hn49A5gg== X-Received: by 2002:a17:90a:9415:: with SMTP id r21mr8960151pjo.180.1602172670592; Thu, 08 Oct 2020 08:57:50 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.57.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:57:49 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 106/117] Bluetooth: set dut_mode_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:58 +0000 Message-Id: <20201008155209.18025-106-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 4b4148e9acc1 ("Bluetooth: Add support for setting DUT mode") Signed-off-by: Taehee Yoo --- net/bluetooth/hci_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 68bfe57b6625..5c2e65b00e68 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -116,6 +116,7 @@ static const struct file_operations dut_mode_fops = { .read = dut_mode_read, .write = dut_mode_write, .llseek = default_llseek, + .owner = THIS_MODULE, }; static ssize_t vendor_diag_read(struct file *file, char __user *user_buf, From patchwork Thu Oct 8 15:51:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823989 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E769CC4363A for ; Thu, 8 Oct 2020 15:58:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8C60C217BA for ; Thu, 8 Oct 2020 15:58:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pOsi2ytH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731991AbgJHP6K (ORCPT ); Thu, 8 Oct 2020 11:58:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731972AbgJHP5y (ORCPT ); Thu, 8 Oct 2020 11:57:54 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29CD1C061755; Thu, 8 Oct 2020 08:57:54 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id 34so4635080pgo.13; Thu, 08 Oct 2020 08:57:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=R9gs6Wld7jw/v0TFtg7coIV6VVR6/NQGiZexDt9xYbc=; b=pOsi2ytHK0X0AUZRUvgvDo/iBkXGN8PYgSC7EdAOPmgT0+yFiYDFqkfFMDQg4CIc04 x5ytQXmSl7FeaIDsjiZDJfbwYxNa2955WA+9d9RFF2+Yaf6nPcURFtCm0piInlH2OKSD Owp/BOUtBvqj8o5h9xgzSBDJFUMT2ppyrm7d2xABt1iGBTZ5qTp1suX4h8+FwXQ4K0Ah bsXbQXaUKqfhGf46qhmXw4gg7ftyVKwGtvpdv52RcGJiVYAS066P7b0ioGFtxwGYue5v 6QdX9VNqbmq/pJtgL7QUrw01JKbOq58TwtjRaxbkGXgISeiyRtkcjJPmuLggypAzbSyb K7CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=R9gs6Wld7jw/v0TFtg7coIV6VVR6/NQGiZexDt9xYbc=; b=Y3P0T8vMUZgHoX8udLre3mnnP/ZQNgQqewfST4uZhs3DiB8u2gqT82nGigz8xhWsh1 2PVud6NuPBMHWTvCP14glRdUs5FE+6/BDnqaW+Jjzav1NRo+zFm7SOtqh1nnd4a2Qxmw ZsQPcFxxriMO71ZRixUgIRU/koucd/RhfjG1Kirpa8pv8cYhScpEQd687jWPzI5wdgHg Lctn7VVXQiS9MLmhXOWUw+a1F8TyocpumCZJw8aDtcn4nNQgK2DZIH1trAkaMFcciDEX RwGK4cgaPBtOkRP7bOaPeQRL8Flftc/qfK8Gk465dw1T1vyWKQzppZa0deC9jgCn45W8 FvjA== X-Gm-Message-State: AOAM531khJJs6oxrXCFeTpUTYVNCVG/Lp1/RIlKvnR6K/dMFd1iGpYw9 R5BeewSiavw/fANqI79Wpzo= X-Google-Smtp-Source: ABdhPJxfYxwR39jy2lNuKWSYKCr9KXVwOOd4gpt1A+Xs8SGkvngTumR9QA8PkaxSl03VGR3DChhTkg== X-Received: by 2002:a17:90a:1ce:: with SMTP id 14mr8987293pjd.209.1602172673685; Thu, 08 Oct 2020 08:57:53 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.57.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:57:52 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 107/117] Bluetooth: set vendor_diag_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:51:59 +0000 Message-Id: <20201008155209.18025-107-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 4b4113d6dbdb ("Bluetooth: Add debugfs entry for setting vendor diagnostic mode") Signed-off-by: Taehee Yoo --- net/bluetooth/hci_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 5c2e65b00e68..6778114f6615 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -173,6 +173,7 @@ static const struct file_operations vendor_diag_fops = { .read = vendor_diag_read, .write = vendor_diag_write, .llseek = default_llseek, + .owner = THIS_MODULE, }; static void hci_debugfs_create_basic(struct hci_dev *hdev) From patchwork Thu Oct 8 15:52:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823945 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F4189C4363C for ; Thu, 8 Oct 2020 15:58:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9AA22217BA for ; Thu, 8 Oct 2020 15:58:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ODVSAC1g" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731887AbgJHP6A (ORCPT ); Thu, 8 Oct 2020 11:58:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731902AbgJHP55 (ORCPT ); Thu, 8 Oct 2020 11:57:57 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 324BCC0613D2; Thu, 8 Oct 2020 08:57:57 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id o8so2972954pll.4; Thu, 08 Oct 2020 08:57:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=AFWXZVrwcjxb7AV7eZJ7W+RHISEo0yE2Tz/KwoEPeGo=; b=ODVSAC1gjTRyWeAMrRdgoNpInTOcrYW3tytPTnntL/ztUKHRFV9LJCvmBGEW5i0OFU VMZdGc+0bSppWBm6cSJS7+DSafqo1xdNR+MurWSY4RGIVaeIAQ0wVxGmo1lNFC0vODCm v9tTd/C4kX0L3xSGbazTiZEKLAJT7TjFAKYlW2SoEIa90F3dirlQyaar5NBrONZndySd JQyAZzjRS86H+i6J5uruaIsHnaoIQoYy5AxqsiH65puw+RwZuh6DQTyrEg9i09BF36CI Ozm/2bvpNuvIumzVc9PVvxReVtPkc9R2573lHG2+CiHpJW14OGGNYOzwjmfZD82WWY4I zsPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=AFWXZVrwcjxb7AV7eZJ7W+RHISEo0yE2Tz/KwoEPeGo=; b=jmEkyyBHfASSI6U3r5Lp/d3Ua1DB8B/X8HXwq3rPpR1cZ93M0UvWGJra1u9SViRF0r +U6gqqdx71GjEyZQM0umDUT5CNKcofboHSxdBxOMKvW8FWTXcUvQglEsdKRHAl1x1AJk 4NZ9BcDY1Wdtq38N5Vp0z8h+p70wcbZL+ArnwZIzkKJ99PgwkOkrIXLl1OZ5rajcoldF SdzzxZTU0zjHrVvsMPxcNb+A6h231LMXOAJRwwxZHjn+R459UkplOjlFo3se8Jgt5ptX o2yIcqx/zXEXpzFEn6F+e6PeFI2oEMf/sq8tm5/U+cnr9ffqtguOnWDKL6/ciAcIvS7B RzMA== X-Gm-Message-State: AOAM533ckAMSI7f5J7SQrV3/PAA9GO7bSDNMQaC4Ql3tfLiCKkLgEqET 7RV3G+MbJP0p/AmwklrmVenClHVjN50= X-Google-Smtp-Source: ABdhPJwbDreiq3WBqi0fVcNFkziqio4DAp5RiyyvpiYFryVGYclEoqrd32lquFc6VS4wuB543AJm2w== X-Received: by 2002:a17:902:7c0d:b029:d3:de09:a3 with SMTP id x13-20020a1709027c0db02900d3de0900a3mr8023424pll.52.1602172676760; Thu, 08 Oct 2020 08:57:56 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.57.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:57:56 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 108/117] Bluetooth: set force_bredr_smp_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:52:00 +0000 Message-Id: <20201008155209.18025-108-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 300acfdec916 ("Bluetooth: Introduce force_bredr_smp debugfs option for testing") Signed-off-by: Taehee Yoo --- net/bluetooth/smp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index bf4bef13d935..9b96a2d85e86 100644 --- a/net/bluetooth/smp.c +++ b/net/bluetooth/smp.c @@ -3407,6 +3407,7 @@ static const struct file_operations force_bredr_smp_fops = { .read = force_bredr_smp_read, .write = force_bredr_smp_write, .llseek = default_llseek, + .owner = THIS_MODULE, }; int smp_register(struct hci_dev *hdev) From patchwork Thu Oct 8 15:52:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823997 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F856C4363C for ; Thu, 8 Oct 2020 15:58:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4250E215A4 for ; Thu, 8 Oct 2020 15:58:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dioAxuHD" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731671AbgJHP6W (ORCPT ); Thu, 8 Oct 2020 11:58:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731304AbgJHP6A (ORCPT ); Thu, 8 Oct 2020 11:58:00 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A7ABC061755; Thu, 8 Oct 2020 08:58:00 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id p11so2971029pld.5; Thu, 08 Oct 2020 08:58:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Vi/uvIU4As/0xtGvRtE9Jkkrv2Lonp4zCWVLlkY6kUA=; b=dioAxuHDgHXAlqAFhMdW/xNV5JdZVM+50buKUO338zXAip/piZ03SLvYEL2jbD66QO CD1uqRA70e0wWcBTQb+bkiltk1vFWeHAOcn2mIZvSTDOnl2/w1oqyzjHGkaRsmCQq2Oi vDTgqO7wYi51+WNRn0f3IP+//PsaambVvdZHvpxKFYYLpDVyxm523fmZValaIjazDcOd 01rD97ZqMQZWaMJBPOfF+vm+FwIBbTYN7MNN3Agy2S2vIpBM00lVuxopcwHm4vU3+6XN yztFIa0oyGC8YRSyhCYQc201KInL0WRU0HrIk5qS4JgJA3jopu2gei2HV/u1Tf9SUEnA yjEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Vi/uvIU4As/0xtGvRtE9Jkkrv2Lonp4zCWVLlkY6kUA=; b=joaCzU/oeHY0xnUX9+FNMl5NR8SgCVsm/RPFJ/LEyEPzOifpbCZEVFLqUr310mroHn 2TQWRo99g9PYQtetTNmfWswUtFXP6XLl7v5MONAPRy1EdRESqAFj7bSVTQlQedYef1sQ zBJckq6m/l4F4sYgkJPXtGttI05KnF8KLRPvYWTEtw5YrK3OOW12hXpCAR2FaWF/pG/M yAO3+oANtjSzUxnRVE7jxkoTqVo1bNbYbie4X0t8GXinrjsZcL9HxbhiWQpJyE+o4UTF abRrLjbe6+4LdjVwxkAE3MLB/6zmUIMBrhtg75RsG7D28orhPkPipKTUC3bhRKa/bid5 iZxw== X-Gm-Message-State: AOAM533nTi28SQoeZMWYt9iOcmRsUbBLaNuhsDUjEHICmpBKtCDkFg63 jlrSdGrmrtHsYgt95SgFnRQ= X-Google-Smtp-Source: ABdhPJzVlmgLtpFfsv47C7gbxvtPADVuv4mOyJjqIe5YkIRLKRDMiUls06HuNRFJgs6A0BzKrUL2aQ== X-Received: by 2002:a17:902:7c8d:b029:d2:80bd:2f30 with SMTP id y13-20020a1709027c8db02900d280bd2f30mr8171020pll.22.1602172679793; Thu, 08 Oct 2020 08:57:59 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.57.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:57:59 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 109/117] Bluetooth: set test_smp_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:52:01 +0000 Message-Id: <20201008155209.18025-109-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 64dd374eac15 ("Bluetooth: Export SMP selftest result in debugfs") Signed-off-by: Taehee Yoo --- net/bluetooth/smp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index 9b96a2d85e86..3b91f927aab5 100644 --- a/net/bluetooth/smp.c +++ b/net/bluetooth/smp.c @@ -3752,6 +3752,7 @@ static const struct file_operations test_smp_fops = { .open = simple_open, .read = test_smp_read, .llseek = default_llseek, + .owner = THIS_MODULE, }; static int __init run_selftests(struct crypto_shash *tfm_cmac, From patchwork Thu Oct 8 15:52:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823995 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FF77C4363A for ; Thu, 8 Oct 2020 15:58:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DA7DD20B1F for ; Thu, 8 Oct 2020 15:58:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="l9pdMfww" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731705AbgJHP6U (ORCPT ); Thu, 8 Oct 2020 11:58:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731166AbgJHP6D (ORCPT ); Thu, 8 Oct 2020 11:58:03 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40894C0613D2; Thu, 8 Oct 2020 08:58:03 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id l126so4348289pfd.5; Thu, 08 Oct 2020 08:58:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GkTNl3/nsnJPBgnMSizZWf0E4PedPJPKpjsCAjH/rSI=; b=l9pdMfwwUkBmdUfH0BiH+l9UFVL3L4n9wEhKj6JsXB4H31pUdpiKYnKtP+FAtjb9Pv l3gCzsg1LMMBvnDsqMs1KlNzSPf1KVrhxGVSYPZMaOn/3ImTMJYMPJWh3BPPYLmDfUHe r+TnEY8wIWX7bFjbvFVCRH1/aes3F/dgmp8lzWHQzdph3WGtxo+AKihP/BQHeLuBuMhw z6InIOHYxFKf/G7AlGpDyRAgO2RUsi6LzWd30wzAeXTQqGyZpKB6m/Guf9sIIVyDUnfT jFM2nxPXaNIPtMOsI611TbsaUL2CZE/g2/VukAxuNR7yVr/5gcmSDzOdRwwiKEd9IlOG JjEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GkTNl3/nsnJPBgnMSizZWf0E4PedPJPKpjsCAjH/rSI=; b=HaT2FqLxSMyv3TAPhfDKMuJR5YETasjoZZ1Z+2n35+WeP4NI8Q+BeBmIo8nVafjKzZ +2LomIavaJ23vLmXF2YkQlGbtoFfszrvyWjlcmXMn18h0alXkXI0l5VIlujByh+oMUJn UZKe4bXPPgbySvRqgUnDZQki6fPbfRw1szv0cAukupYVx9LTz88l6SBCUwVd3+iOzTZV rT5ie0GaPmmhWlwrsVAO4r+XYBmpU68DGFNTEQcqiT5PS4N8esFKEk5z2LmRhSin7oLE HDFu0k2dnfvmUN3SAewFL+DuC8ohVgTJ4pW3QLgAjrwc95Buh6SRJPvV0I27CZxWYN9F zDTw== X-Gm-Message-State: AOAM532X5Q9K8kKWGgzQ0ej1Yhk0eDOAbpJ1ezaYgGd8JAIVwEk0Upzl DqUbRFlV//ooWyYKDMtFEMg= X-Google-Smtp-Source: ABdhPJyEbdiyg2r4RhJZiJRw8ba/9x4CpgA8jVNX0HpSWq/BGG/+8FzdHFnUWDmuzRfNbC7KemSmpA== X-Received: by 2002:a17:90b:118a:: with SMTP id gk10mr8429327pjb.218.1602172682817; Thu, 08 Oct 2020 08:58:02 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.58.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:58:02 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 110/117] Bluetooth: set use_debug_keys_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:52:02 +0000 Message-Id: <20201008155209.18025-110-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 0886aea6acd2 ("Bluetooth: Expose debug keys usage setting via debugfs") Signed-off-by: Taehee Yoo --- net/bluetooth/hci_debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/bluetooth/hci_debugfs.c b/net/bluetooth/hci_debugfs.c index 5e8af2658e44..cdf19e494c31 100644 --- a/net/bluetooth/hci_debugfs.c +++ b/net/bluetooth/hci_debugfs.c @@ -284,6 +284,7 @@ static const struct file_operations use_debug_keys_fops = { .open = simple_open, .read = use_debug_keys_read, .llseek = default_llseek, + .owner = THIS_MODULE, }; static ssize_t sc_only_mode_read(struct file *file, char __user *user_buf, From patchwork Thu Oct 8 15:52:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823993 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D81D3C04EBE for ; Thu, 8 Oct 2020 15:58:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8416D20B1F for ; Thu, 8 Oct 2020 15:58:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lhdWkX1e" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730999AbgJHP6R (ORCPT ); Thu, 8 Oct 2020 11:58:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728620AbgJHP6H (ORCPT ); Thu, 8 Oct 2020 11:58:07 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A3F6C0613D3; Thu, 8 Oct 2020 08:58:06 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id i2so4659481pgh.7; Thu, 08 Oct 2020 08:58:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=STf+1xnAdWv7hMrgcPL8ZiWZwYzLO+1aLUXFpjRCvgc=; b=lhdWkX1ey708K603b3BNPUGjqR8pXW84dpRBXo/GTeGHb4SbgvdH0jpMgaD7xTZLJZ Cq3Xsq1nDt8QqJbHg15ib7maKaVBHfkNzSCE2Kxk10SwrxhHdmj8IhFiO9X6tfOuUVxo kgANZwX0xVGuGvt8Aqr6xa9bC3XrNyF9XZjZuBmNa1CQII444s0AYXdmMePyBIrCGls7 gybBeJNy4NN06Nf1nDWhplWIpBua9RxTrppmVCOH7cPQq4AMRxwtDTeiqGy+HYO32h3f 4Ihdg68epJZhzdecD/wLrAEPHRllF1vdpVcwNoKFshZiaW55PyTCcMvE+lmQU21lhzej HdZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=STf+1xnAdWv7hMrgcPL8ZiWZwYzLO+1aLUXFpjRCvgc=; b=qxd/Z08Vcv8cEKEX0MgzIwRevg/5UyabBQ8l01qTwMXHstgUfRhjx3V4YcCq33uvtJ grQ9sFZpBqunWA8en9i7nA7FhqBkR2NzPIxtmhVUjRrSCtJnhSMHHOM40wD84YOYyYb4 E7+/nOocjDmdB5KJlTDUPb1QaP3mooso+H74wjeFitYuBiAQwkj5fok3LJRhqzDLAUPM oWs9Qo1yS8s40zaRyO97V3Xpr1IGIPHYAJAxU6+yPmRUcdecuWfjUA7hunuOaXsj5bKb gfqkiPeBL201Ag1hAo7aJrRbCaTAT8fQT7R6UzWek9lyB6tG0H7AkzMJF0z7Z06N/vgj QAjg== X-Gm-Message-State: AOAM530GHhw8WB1rWFkOr0/WQUu/YedbP/CjtudQbYs7OuspQ8BljW3E 6KIW+V5hNgHwjf2Aw+GipRfjZ/bRp58= X-Google-Smtp-Source: ABdhPJxsvZd7Pi5b2mq96Kkj0p/5A+SvFlSA88im8U1vWnNqs5WuE46Tobiz7+2WqUQmfLa9pynNsg== X-Received: by 2002:a17:90a:8007:: with SMTP id b7mr8940979pjn.84.1602172686077; Thu, 08 Oct 2020 08:58:06 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.58.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:58:05 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 111/117] Bluetooth: set sc_only_mode_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:52:03 +0000 Message-Id: <20201008155209.18025-111-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 134c2a89af22 ("Bluetooth: Add debugfs entry to show Secure Connections Only mode") Signed-off-by: Taehee Yoo --- net/bluetooth/hci_debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/bluetooth/hci_debugfs.c b/net/bluetooth/hci_debugfs.c index cdf19e494c31..b8e297e71692 100644 --- a/net/bluetooth/hci_debugfs.c +++ b/net/bluetooth/hci_debugfs.c @@ -303,6 +303,7 @@ static const struct file_operations sc_only_mode_fops = { .open = simple_open, .read = sc_only_mode_read, .llseek = default_llseek, + .owner = THIS_MODULE, }; DEFINE_INFO_ATTRIBUTE(hardware_info, hw_info); From patchwork Thu Oct 8 15:52:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11823991 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22DB4C4363A for ; Thu, 8 Oct 2020 15:58:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C02E420B1F for ; Thu, 8 Oct 2020 15:58:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VFF/TvJk" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732001AbgJHP6O (ORCPT ); Thu, 8 Oct 2020 11:58:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729508AbgJHP6J (ORCPT ); Thu, 8 Oct 2020 11:58:09 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 969ADC0613D4; Thu, 8 Oct 2020 08:58:09 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id x13so1725735pfa.9; Thu, 08 Oct 2020 08:58:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JFzfQel0Em2E0dYcXwtpvySSq1ZQYNyJWWOukr+jm34=; b=VFF/TvJk8cAVlFkkMVg+fyFrL7k/Bdlb72VoYGH0yARhiK8h0uoIDHzZxbUZ0lKRxI nJvgAhsrCnfL8dz5edycXaKhmbzmgc1tO1IiIDPiTlCnQSGzPQoAI5wG+mJkR59gSyHB bmTKz8kQEaD3LoOa9mOO9LMT4r1mMsR3JHFusknbZxFyisQodx0fYloh4XO1GBflEPSf a2QN9ST4uEZQ1uto796cwJ7p423SJLbZ7Xj5AZjttSA0YXClMC32AKeO06BU0C4rzRn3 aB4nh22iJjidmVWkrB1RPYUQy9DczN3psC4NvydA3v5xtPs3YHl9X5NnM1CCWwclVg9I dfAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JFzfQel0Em2E0dYcXwtpvySSq1ZQYNyJWWOukr+jm34=; b=FvebloiHArxDezYywL5fZA94QyshflkMvtuBv1pZSoNu2QYIRamfq4dd42Zfrcs4ba U9taCeJvJBgSmE8Jrqa68VE4cZGyljsRg5SzLERVX8d2Ufa8buWLF5Fgau0Znh2Yuyw/ 3Is0M3E2bpIkNoJ6lomGu9DSYpmh4IRSVa2QwK76u+o2stfOvH2SJiNt+xD6D7PKuF85 4jp8GYFMNuk8rgi8CkbY++bVDsqGYGww96+M45LF/uty5LKJGcrCU/GHMZSiPL3JedWF Pd4ioq5yOBEImexHjmQ54YePZ8XwtFQzX6CpHQEm0JMs2vafAXW4zqLyRnIncc/1N2dQ QTFw== X-Gm-Message-State: AOAM530qNxyTNTPNXgESS1iCjcbkidiWbyJuqkhvlcVP6dmuaW1B3Dy4 IP+NfkqNc3e8LyZLhndcD98= X-Google-Smtp-Source: ABdhPJyNcWvee6rOYpo1vSrgzPAOcXS5s01/ThIQAqp2gBAZZ9hq/x+IqpXJ94Cf+g4pFjhaxuVepg== X-Received: by 2002:a17:90a:aa90:: with SMTP id l16mr8937887pjq.0.1602172689170; Thu, 08 Oct 2020 08:58:09 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.58.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:58:08 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 112/117] Bluetooth: set DEFINE_QUIRK_ATTRIBUTE.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:52:04 +0000 Message-Id: <20201008155209.18025-112-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: b55d1abf568c ("Bluetooth: Expose quirks through debugfs") Signed-off-by: Taehee Yoo --- net/bluetooth/hci_debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/bluetooth/hci_debugfs.c b/net/bluetooth/hci_debugfs.c index b8e297e71692..4a26cb544635 100644 --- a/net/bluetooth/hci_debugfs.c +++ b/net/bluetooth/hci_debugfs.c @@ -71,6 +71,7 @@ static const struct file_operations __name ## _fops = { \ .read = __name ## _read, \ .write = __name ## _write, \ .llseek = default_llseek, \ + .owner = THIS_MODULE, \ } \ #define DEFINE_INFO_ATTRIBUTE(__name, __field) \ From patchwork Thu Oct 8 15:52:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824069 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A812C47095 for ; Thu, 8 Oct 2020 15:59:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C733121897 for ; Thu, 8 Oct 2020 15:59:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="c346zn0s" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732042AbgJHP7e (ORCPT ); Thu, 8 Oct 2020 11:59:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730891AbgJHP6M (ORCPT ); Thu, 8 Oct 2020 11:58:12 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B63BC0613D5; Thu, 8 Oct 2020 08:58:12 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id n14so4345737pff.6; Thu, 08 Oct 2020 08:58:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4Q3tt6tkPaS/9so7gcfZUREF7SggwCHKWDmvfIExvG8=; b=c346zn0sbGCSVkN8iEd+inCP7K241yzuGSNt1lM9EqoPgFxgaawpV+ovruX03gHk7d 3BSaosAf6S17wONIRKKBeR+cFqRnw5hUDlF3/8Nnf8niDCAfi1UkmCtaTdMnrybGRCZu zlqkiUGHUfUpAhdfU4kJWTnUByc6uIREyd3Iqe6B4QaGG8+UQRuqGjpg3JORj4uBytmE aC9mliZmcP75v+rzgTyRjybYKosGSWm4tc7bLOj/EJKdMt8VI6KujAQMPaqVsmZRmh62 QPCe9wRTYuPVScSbwtawz3UWWEh1seOy172H0wLjF4sgEgBdjB9wugIArjl+Vrt2gSd8 sp+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4Q3tt6tkPaS/9so7gcfZUREF7SggwCHKWDmvfIExvG8=; b=pY7capGuSeymafHnNVnqrzwdEXC1RHHqy/khU11LSCM/s8LTtQTe8rNmnYXB64Colz pwUWNXHHsk+6QChojE+6LAe0MsnaRh/6rlKToAAbfEQl0j4pGzMtIk0dfSd47G+LcBlH sLk+8rLgSv7iKOgR2JMxkhqvWD+lteeMrE/uyev1TfEDuUeIQA8gcmLyXeD/CrTD8QoT WRZ6cEH5aMCDnIeNzXh9vLU77CNKlMLqSOsSdrO5prV3OMD2C8NYihCEUHqyw5HKkiqS RaQIPIM8ak2vKBWdCjxqKo4gOYxa6QjLdWUOwBAT5RcY87k8ceRtfuSnnqCFJZiDQJMM aNeA== X-Gm-Message-State: AOAM533qjgcEgkPzBQ69QJRTpB8XU6Q/KUdQirOtEHV2kCGPutnGYiVK XV5vABdZjUyorfEIQMuh+38= X-Google-Smtp-Source: ABdhPJyZaVpQYcmNxbB5NUuhW09qI7iqEDvyEVLvGU++XKAdCpEWTFn15X9ZFlNafwlIx5d5Q9f/Yg== X-Received: by 2002:a63:5c07:: with SMTP id q7mr8180649pgb.222.1602172692199; Thu, 08 Oct 2020 08:58:12 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.58.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:58:11 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 113/117] Bluetooth: set ssp_debug_mode_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:52:05 +0000 Message-Id: <20201008155209.18025-113-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 6e07231a80de ("Bluetooth: Expose Secure Simple Pairing debug mode setting in debugfs") Signed-off-by: Taehee Yoo --- net/bluetooth/hci_debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/bluetooth/hci_debugfs.c b/net/bluetooth/hci_debugfs.c index 4a26cb544635..d162736a5856 100644 --- a/net/bluetooth/hci_debugfs.c +++ b/net/bluetooth/hci_debugfs.c @@ -441,6 +441,7 @@ static const struct file_operations ssp_debug_mode_fops = { .open = simple_open, .read = ssp_debug_mode_read, .llseek = default_llseek, + .owner = THIS_MODULE, }; static int auto_accept_delay_set(void *data, u64 val) From patchwork Thu Oct 8 15:52:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824065 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B14BC4727E for ; Thu, 8 Oct 2020 15:59:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A38DA21924 for ; Thu, 8 Oct 2020 15:59:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bD+fs5ZE" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732039AbgJHP7d (ORCPT ); Thu, 8 Oct 2020 11:59:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732006AbgJHP6P (ORCPT ); Thu, 8 Oct 2020 11:58:15 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAB2BC061755; Thu, 8 Oct 2020 08:58:15 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id g9so4655596pgh.8; Thu, 08 Oct 2020 08:58:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=t8T8i58WQfbeHU8dIRPN7izm8rHgd8f2YkszgDsgMR0=; b=bD+fs5ZEG5wlWKtg1qXOk00E5AuZVLgviAE7M9mQ6FjSh0ElMwaEK+wxbEFEXYlEPz EHcRGgh+LEYCHtxAygpFx5pp/pK+WHsZ0QrETEiCRhcUGrKVJaFhOcqtuQRJdWq5Pf4u QKmC/ORc2xe3pAb+EOfJzGJ77rFlt+KokJfCbleaQI70NJ0mtbqE9eI7t7iTVfptPSb0 2uR7oQWHwjRrN16MRkUfRuJPSTiB6ChXvJxZ2eNadx3KsHuI2EumrPib/AXskD/+seji xGkfLkZsMFKaks+2v8qkQdW69GbmJAKRtZ3HDYOpodP0XadxUCLjryasinuVmowzbWx8 Dx0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=t8T8i58WQfbeHU8dIRPN7izm8rHgd8f2YkszgDsgMR0=; b=psQvFkFi2DsyeclTXzidrcFjs3YsyT4Wh7rgPL4pUpd3a89iDu0CkbzQMMKnutxAva T/8SNNBXxlDEWDi4o++I2ZZItjmSgbkq9FObWyoLOx4YyeTGdAYmtZT44O5126uhR69D 8BaJto7ptdx6lF6fEl1rbfKd9sL0ge3C7amEjdZ6zUy1h0xR7iMOvClyKyCH5RQVuBAH fLelLekgKT0myZWXycmTmMonbCQosWn+1uO//xr1L3p1I/ioW3KrbQ838wKuC3wHNbjj geZwWDtM6UKZjimiHjxJ9bDy7c+/cCGINulj3LhDjnM2FRoYXx0scAmN5UO5stmXOb2S HsGQ== X-Gm-Message-State: AOAM531iTmVRBeTtoK0RSml7nwJ7Slr4JNGr1JKdzT17hXgoPGzc07/c +coq5Zcw1gh7n1O/MgPPi/E= X-Google-Smtp-Source: ABdhPJxqauphbzVm/v5Kps6fYalqWKsQwqxBo5Lq4hOJOmbFwRVoPErK0xynbFNp9k1Pd+5KtPCoIQ== X-Received: by 2002:a17:90a:6444:: with SMTP id y4mr3865561pjm.203.1602172695273; Thu, 08 Oct 2020 08:58:15 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.58.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:58:14 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 114/117] Bluetooth: set force_static_address_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:52:06 +0000 Message-Id: <20201008155209.18025-114-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: ac345813c4ac ("Bluetooth: Expose current identity information in debugfs") Signed-off-by: Taehee Yoo --- net/bluetooth/hci_debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/bluetooth/hci_debugfs.c b/net/bluetooth/hci_debugfs.c index d162736a5856..6ea692a3d4a8 100644 --- a/net/bluetooth/hci_debugfs.c +++ b/net/bluetooth/hci_debugfs.c @@ -730,6 +730,7 @@ static const struct file_operations force_static_address_fops = { .read = force_static_address_read, .write = force_static_address_write, .llseek = default_llseek, + .owner = THIS_MODULE, }; static int white_list_show(struct seq_file *f, void *ptr) From patchwork Thu Oct 8 15:52:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824063 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A20AC47095 for ; Thu, 8 Oct 2020 15:59:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3F81D20B1F for ; Thu, 8 Oct 2020 15:59:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="tew9+4K1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732031AbgJHP7c (ORCPT ); Thu, 8 Oct 2020 11:59:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731069AbgJHP6S (ORCPT ); Thu, 8 Oct 2020 11:58:18 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCDA3C0613D2; Thu, 8 Oct 2020 08:58:18 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id w21so4345267pfc.7; Thu, 08 Oct 2020 08:58:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Zfl90cVmYUuW0xLp4/sHdwM7saiIni7ST7oKF7yhfIU=; b=tew9+4K1uFItwp52xS8rmCl8C8XA9nPO/WKFwYGjDlkWBnhoMt0OwKcWpEBtAachx5 tvbANGYNsDafH3LYqjqtl6ACLMYgNwbcuekKhRSjPJs1Bsh1+130Py+b3fOMVSKLY18W fghUrPgLCk5MNU08owH3OhrI9h7Cqxgd52syNdrDFK8zlZNGJpH8f4RR1h8l1mz+BS8D YujIQ37sYCs144wZxe6I5ReAqBusEH/klucitvoLF4O2KPIXPLVCQ3l2gymFMSGp+i0n CPttVlH8XDW6sw3WGubvmyG6gaHhPBNZIeIoOf6gcQA6QoN2wrlk+PQfzxacfePNakIT 9AWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Zfl90cVmYUuW0xLp4/sHdwM7saiIni7ST7oKF7yhfIU=; b=O6LeuF2ObjfjZxhoFFSDGYvULsnf7utOPHVLJNje0KKzt4zeZwwy3/TayFUsFYGb8r S+Tl1aXptSyceqKal+IkKL20KHJdW5bMMNZAO5FYCJmX9qSjIbgkGpmC7jUwRHlxfWxX yX5jjde6/tCIhXgT+aXR1aO1Ik+e1+OGyRwLb+/7U4hpQb06gK3jPHtRQht/XC/TGzT4 C7phIgy4UaNMfKa3Rspc8j7o8Kncy4OtZQZC6TF4Cl/QA2hTVjh2qc3eDIuE2hb49IL1 uctyeoWYjpDLbhJK3JlXvnLK4rb5vKWkPAiY8dVLZg07mC/7vTDNWZcQ83zxrppFyXpC 8NIQ== X-Gm-Message-State: AOAM532V/tXhNtvN1W/dMBUwNgee5mLRPUmAVXmGuQTH2Z94cGOAZ1ki L+gUVdpDF4FKfav/39H6r3BU5jbcD4U= X-Google-Smtp-Source: ABdhPJxFkST9RsXb8M+2dYvP5LZ7ie2SuemBVpbb9bC89RUYthOrqJuvNppdU3MnRM//oUHjKWFtEQ== X-Received: by 2002:a17:90b:8c:: with SMTP id bb12mr5454202pjb.48.1602172698299; Thu, 08 Oct 2020 08:58:18 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.58.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:58:17 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 115/117] Bluetooth: set force_no_mitm_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:52:07 +0000 Message-Id: <20201008155209.18025-115-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: c2aa30db744d ("Bluetooth: debugfs option to unset MITM flag") Signed-off-by: Taehee Yoo --- net/bluetooth/hci_debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/bluetooth/hci_debugfs.c b/net/bluetooth/hci_debugfs.c index 6ea692a3d4a8..c9a074da16dd 100644 --- a/net/bluetooth/hci_debugfs.c +++ b/net/bluetooth/hci_debugfs.c @@ -1122,6 +1122,7 @@ static const struct file_operations force_no_mitm_fops = { .read = force_no_mitm_read, .write = force_no_mitm_write, .llseek = default_llseek, + .owner = THIS_MODULE, }; DEFINE_QUIRK_ATTRIBUTE(quirk_strict_duplicate_filter, From patchwork Thu Oct 8 15:52:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824071 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 720A3C4CC6F for ; Thu, 8 Oct 2020 15:59:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1A16520B1F for ; Thu, 8 Oct 2020 15:59:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UMKeA8LY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731410AbgJHP7b (ORCPT ); Thu, 8 Oct 2020 11:59:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731166AbgJHP6V (ORCPT ); Thu, 8 Oct 2020 11:58:21 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5434C0613D3; Thu, 8 Oct 2020 08:58:21 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id x16so4677181pgj.3; Thu, 08 Oct 2020 08:58:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GptPqW+YBVZbflI+JOZGmhDhTFZoI6lt7BxarReCpAo=; b=UMKeA8LY1Qk7ghT/Io+5D79urxzLni27kL5YzE4uT+H/0BuTRwwg9sgXP3Z1UU82MC 4xped/OOHN2PZCXpebyYCoyOUCMzG8i+gmp6UbTPu94xjlpFNslvlX3GomtTHNN0nyrJ iGEy/ZzImzHDaIg4ghhWhx1j8f56UXLKD9ksh7gaXwDCgJjEkgjdmzGdwx2n301rcmay YXpPf0YYoPYR49NEeVqFbJbqxht5M5t7gWzPIS18q73FXJtR8Fs2JgSYSBpgxNrED2H3 3bAV58jj0sG26M+nM4JuNIs1SCAXQFXjP07/i6/pwU32eEcOE6nYDpGrWOymhJeJw8In 6UsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GptPqW+YBVZbflI+JOZGmhDhTFZoI6lt7BxarReCpAo=; b=UI0E5tPYbDmN27zmbD0joMSKXIdnJ9FcSCvDjGHeV3s4mLXvFWXAL/zzzfcROPGqCk Zi7kPkkH9uDUXFWZ/hAP1s7sU+yiSo/j10xE+PP3fMHn5i3zXKS9FglXrzrS4GWqnE8x Vz//bM5ERtz6P+DM+ZvONWVjQnG0EPjmIWCdlM2I4w14X4oLnhj1nJpmbZjRMW3KK+5D 0nbRfNHIFDo4puiX5fUjPFoppvDIzV7QbFcKgffzMDP9ab2Gov2GR1sHMSNtfJGo3rhR hxzRjngjoYo0JgO01wmayxL1/qTBQvZwpL2aQjlejgfUiZtCLg+hunnv73xaV5t/ictB PH5w== X-Gm-Message-State: AOAM532lYpID5JPK7H8/xcmL0zSPME8ssnorDpJBia9EZTQXaLTeOCRF We/8C9bYAJ81ZuJhFOB8hPw= X-Google-Smtp-Source: ABdhPJzIAX4KCPiO/JSqKYkaV8RS4Q//H5n6WE8edJ/nxs+KEDg7UobC1HDGUkM3vk4D7dpq664AOQ== X-Received: by 2002:a17:90a:2dcd:: with SMTP id q13mr8762014pjm.202.1602172701435; Thu, 08 Oct 2020 08:58:21 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.58.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:58:20 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 116/117] Bluetooth: 6LoWPAN: set lowpan_control_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:52:08 +0000 Message-Id: <20201008155209.18025-116-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 6b8d4a6a0314 ("Bluetooth: 6LoWPAN: Use connected oriented channel instead of fixed one") Signed-off-by: Taehee Yoo --- net/bluetooth/6lowpan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index cff4944d5b66..0936184f0813 100644 --- a/net/bluetooth/6lowpan.c +++ b/net/bluetooth/6lowpan.c @@ -1214,6 +1214,7 @@ static const struct file_operations lowpan_control_fops = { .write = lowpan_control_write, .llseek = seq_lseek, .release = single_release, + .owner = THIS_MODULE, }; static void disconnect_devices(void) From patchwork Thu Oct 8 15:52:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 11824073 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 726CCC4CC6F for ; Thu, 8 Oct 2020 15:59:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 31F9520B1F for ; Thu, 8 Oct 2020 15:59:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LP1lH8q6" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731281AbgJHP73 (ORCPT ); Thu, 8 Oct 2020 11:59:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730084AbgJHP6Z (ORCPT ); Thu, 8 Oct 2020 11:58:25 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D18F7C0613D4; Thu, 8 Oct 2020 08:58:24 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id y14so4637788pgf.12; Thu, 08 Oct 2020 08:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MrwV7YboufuzPmRY7YXXjmmxDQMT3fV4x6LdtCZmti8=; b=LP1lH8q6rNJJwGYNet9TqcUgUeLGgdJTUoX2VABqWbb4zfKk/yK0DDzC3Sh+n8Ewt7 sglipnDEAJIRMS+rdiTyx24W0oJhjP8C0wxOjmhA4U/myUk+5LH18UD+S28a0vgCfKUG 9M9w9pa01efZDnCC2JZNjTPBgkVswRLlLFhcrrHPif7hOrct5Gv2Y5rmHLWa0PK7uo0J gCDGJVR8HFZAJktNr6I5guKNC7EakGN3C7H1Xtx2kcnmvO+5iU83SMRVjGKURkiFFX60 dgWb9Pzyez6uUAzrxJ2URBYe1OyCFHmi9gk8/uP/Zj9wS9NiWWEXDsD7KRXVBgZ9kIor ibVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MrwV7YboufuzPmRY7YXXjmmxDQMT3fV4x6LdtCZmti8=; b=QvIHC0Kyn3UFkKhiHYTkW7AbPkE0iCj/6VXAN3qUWOljZg5dGFgSkIi4VjfZbTwiCA 45bYnn/0KLDD8FNa5UUKY3qTY9XOeqPxSTaHQeQOvXVLdDi88tb7iift2OSS5gfc0cV6 3Et+ZrV4fUjAzGg4+JI36z7D27gBUACj7RnF0Psk/g2zgSGBoyRGkcnccvHeC/1E20r5 YQgLUH1uBt84U1e2aEyOv9s5ZvqEpkpCYDzxRQUTCh9WIIjAIBYj7USeaU7P13Kdm5CQ bNC08rEamMn/o/0EMnoC8HC9VihzpI1DGGv8bPco39onybqcdePnROid5wx1vROefUg8 otaA== X-Gm-Message-State: AOAM530u+ebAtj6kQ+r3hWsjANCQhq8R2as59f+Gx7nbTRfMgukb+MjX a8XF+cJGvMIBrNMect9TidQ= X-Google-Smtp-Source: ABdhPJx4Vsg3QPFugLVIui6GS8ZvLhvbbBsX2PxlUIGK8zBVxxZTTFUGnUioSlrvyxNd6MDGOY7Xjg== X-Received: by 2002:a63:4457:: with SMTP id t23mr7863489pgk.108.1602172704447; Thu, 08 Oct 2020 08:58:24 -0700 (PDT) Received: from localhost.localdomain ([180.70.143.152]) by smtp.gmail.com with ESMTPSA id f1sm5917929pjh.20.2020.10.08.08.58.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 08:58:23 -0700 (PDT) From: Taehee Yoo To: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, b43-dev@lists.infradead.org, linux-bluetooth@vger.kernel.org Subject: [PATCH net 117/117] Bluetooth: set test_ecdh_fops.owner to THIS_MODULE Date: Thu, 8 Oct 2020 15:52:09 +0000 Message-Id: <20201008155209.18025-117-ap420073@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008155209.18025-1-ap420073@gmail.com> References: <20201008155209.18025-1-ap420073@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: 6de50f9fdb60 ("Bluetooth: Export ECDH selftest result in debugfs") Signed-off-by: Taehee Yoo --- net/bluetooth/selftest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/bluetooth/selftest.c b/net/bluetooth/selftest.c index f71c6fa65fb3..445ea247061b 100644 --- a/net/bluetooth/selftest.c +++ b/net/bluetooth/selftest.c @@ -194,6 +194,7 @@ static const struct file_operations test_ecdh_fops = { .open = simple_open, .read = test_ecdh_read, .llseek = default_llseek, + .owner = THIS_MODULE, }; static int __init test_ecdh(void)