diff options
author | Minjie Du <duminjie@vivo.com> | 2023-07-12 13:47:40 +0200 |
---|---|---|
committer | Kalle Valo <quic_kvalo@quicinc.com> | 2023-08-22 15:36:08 +0200 |
commit | 6edb4ba6fb5b946d112259f54f4657f82eb71e89 (patch) | |
tree | 35ffa983a47ed3a53057693b51d45383443391a8 /drivers/net/wireless | |
parent | wifi: ath9k: protect WMI command response buffer replacement with a lock (diff) | |
download | linux-6edb4ba6fb5b946d112259f54f4657f82eb71e89.tar.xz linux-6edb4ba6fb5b946d112259f54f4657f82eb71e89.zip |
wifi: ath9k: fix parameter check in ath9k_init_debug()
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
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index fb7a2952d0ce..995c6e705637 100644 --- 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 |