From patchwork Wed Jul 12 11:44:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Fritz X-Patchwork-Id: 9836539 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 31FD1602D8 for ; Wed, 12 Jul 2017 11:44:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 219DA285A8 for ; Wed, 12 Jul 2017 11:44:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1499D285DB; Wed, 12 Jul 2017 11:44:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9839B285A8 for ; Wed, 12 Jul 2017 11:44:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756716AbdGLLoY (ORCPT ); Wed, 12 Jul 2017 07:44:24 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:33949 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756235AbdGLLoX (ORCPT ); Wed, 12 Jul 2017 07:44:23 -0400 Received: by mail-wr0-f196.google.com with SMTP id k67so5179413wrc.1 for ; Wed, 12 Jul 2017 04:44:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=message-id:subject:from:reply-to:to:cc:date:mime-version :content-transfer-encoding; bh=hpl/Qk7xvGfHCHRdiGJdfDAjODST3UIwO5EGrWwwTkU=; b=Lan80E3WWYOl+BD0Xbpv+OIlCnQwhU/A/RpZqH2dNec4JEN38IEzJGPqHBkVp3zqaY ReYmWWBDl9oE9qk4tm6vO/B3suRgeKA1CniWue+mXSqpHbptX35oVsoe/66FJ/qnwfzd soGqI0b60xmECtUL+IO+tlBvvmwHjC9SoGqJxQ4VoCKzEr+aSj5158yVY9jlOZ72qn3r QAU3IuGjXHRQHh/jOo8rBduuRbKt8UEX5FO7jN1DVw2v9RBRFHUrcK3a8qhkHDVDc96f OSrRFiH/7/2VfmUUFISQ+z2LyHMrHOnpLfQWceaqF/d4lLKHip7RgqaX2Dtz0ocvvEYh C4KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:reply-to:to:cc:date :mime-version:content-transfer-encoding; bh=hpl/Qk7xvGfHCHRdiGJdfDAjODST3UIwO5EGrWwwTkU=; b=Rm91ZPLb31C2RBJTQC72UXrdwSY7S5wFMiY88MNrzN2dviRiQz3EG5v1TsCIOrpvHS cWjPwEu5p/S9PEOodCaPAToFg+sxyLAX6RpilV0KwwR1S0WS1gHN1xGaBxHO6Kt+7yi4 hKRPClanewhEwvN/k/gBasWvQhgN6Hij77bX/qNgz701dMzkBgKFKxCtrPWb1q//Hg6U iUfhTi5GElehc6HgunquC27+RMXbMysyRvdQIgk2DeA05qkGkPeirP98vEivlqhFCLH0 2tjoCdFa7yCsVOU6HldB+2ghioAjsPlHzSUy0lJmQIY5tzx34WI4+seSmWIgfjZdWK5U 3hhg== X-Gm-Message-State: AIVw110hOftg6783FBL55hSPgaLWU3M15Ly1pbp950Y++0azj/7fmh5b QJBfZMeuuoGuHg== X-Received: by 10.223.139.152 with SMTP id o24mr2781375wra.178.1499859862505; Wed, 12 Jul 2017 04:44:22 -0700 (PDT) Received: from mars.fritz.box (HSI-KBW-109-193-021-110.hsi7.kabel-badenwuerttemberg.de. [109.193.21.110]) by smtp.gmail.com with ESMTPSA id j190sm2686838wmd.22.2017.07.12.04.44.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Jul 2017 04:44:21 -0700 (PDT) Message-ID: <1499859860.2050.5.camel@googlemail.com> Subject: [PATCH] ath9k: fix debugfs file permission From: Christoph Fritz Reply-To: chf.fritz@googlemail.com To: QCA ath9k Development , Kalle Valo Cc: linux-wireless@vger.kernel.org, Lorenzo Bianconi Date: Wed, 12 Jul 2017 13:44:20 +0200 X-Mailer: Evolution 3.12.9-1+b1 Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes a trivial debugfs file permission issue. Debugfs file ack_to has no write function, so S_IWUSR gets purged. Signed-off-by: Christoph Fritz --- drivers/net/wireless/ath/ath9k/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index c56e40f..674451a 100644 --- a/drivers/net/wireless/ath/ath9k/debug.c +++ b/drivers/net/wireless/ath/ath9k/debug.c @@ -1405,7 +1405,7 @@ int ath9k_init_debug(struct ath_hw *ah) #endif #ifdef CONFIG_ATH9K_DYNACK - debugfs_create_file("ack_to", S_IRUSR | S_IWUSR, sc->debug.debugfs_phy, + debugfs_create_file("ack_to", S_IRUSR, sc->debug.debugfs_phy, sc, &fops_ackto); #endif debugfs_create_file("tpc", S_IRUSR | S_IWUSR,