Skip to contentSkip to conversation

ath9k: fix debugfs file permission

PATCH In review Christoph Fritz 2 participants 2 messages Jul 12, 2017 – Aug 3, 2017 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath9k: fix debugfs file permission

This patch fixes a trivial debugfs file permission issue. Debugfs file ack_to has no write function, so S_IWUSR gets purged.

---
 drivers/net/wireless/ath/ath9k/debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath9k/debug.c +1 -1
index c56e40f..674451a 100644
@@ -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,
Signature · 1 line
2.1.4
#1 lore raw
Quoted 5 lines · Christoph Fritz

This patch fixes a trivial debugfs file permission issue. Debugfs file ack_to has no write function, so S_IWUSR gets purged.

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

f085c105479f ath9k: fix debugfs file permission

Signature · 3 lines
https://patchwork.kernel.org/patch/9836539/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches