projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
454994c
)
wifi: ath9k: fix parameter check in ath9k_init_debug()
author
Minjie Du
<duminjie@vivo.com>
Wed, 12 Jul 2023 11:47:40 +0000
(19:47 +0800)
committer
Kalle Valo
<quic_kvalo@quicinc.com>
Tue, 22 Aug 2023 13:36:08 +0000
(16:36 +0300)
Make IS_ERR() judge the debugfs_create_dir() function return
in ath9k_init_debug()
Signed-off-by: Minjie Du <duminjie@vivo.com>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link:
https://lore.kernel.org/r/20230712114740.13226-1-duminjie@vivo.com
drivers/net/wireless/ath/ath9k/debug.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/debug.c
b/drivers/net/wireless/ath/ath9k/debug.c
index
fb7a295
..
995c6e7
100644
(file)
--- a/
drivers/net/wireless/ath/ath9k/debug.c
+++ b/
drivers/net/wireless/ath/ath9k/debug.c
@@
-1420,7
+1420,7
@@
int ath9k_init_debug(struct ath_hw *ah)
sc->debug.debugfs_phy = debugfs_create_dir("ath9k",
sc->hw->wiphy->debugfsdir);
- if (
!sc->debug.debugfs_phy
)
+ if (
IS_ERR(sc->debug.debugfs_phy)
)
return -ENOMEM;
#ifdef CONFIG_ATH_DEBUG