ath9k: fix debugfs file permission
authorChristoph Fritz <chf.fritz@googlemail.com>
Fri, 28 Jul 2017 12:15:46 +0000 (15:15 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 3 Aug 2017 11:38:36 +0000 (14:38 +0300)
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>
drivers/net/wireless/ath/ath9k/debug.c

index 2e64977..01fa301 100644 (file)
@@ -1452,7 +1452,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,