diff mbox

ath9k: fix debugfs file permission

Message ID 1499859860.2050.5.camel@googlemail.com (mailing list archive)
State Accepted
Commit f085c105479f05bf47cd8f1f9786be2a73de29cb
Delegated to: Kalle Valo
Headers show

Commit Message

Christoph Fritz July 12, 2017, 11:44 a.m. UTC
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 <chf.fritz@googlemail.com>
---
 drivers/net/wireless/ath/ath9k/debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kalle Valo Aug. 3, 2017, 11:39 a.m. UTC | #1
Christoph Fritz <chf.fritz@googlemail.com> wrote:

> 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 <chf.fritz@googlemail.com>
> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>

Patch applied to ath-next branch of ath.git, thanks.

f085c105479f ath9k: fix debugfs file permission
diff mbox

Patch

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,