* [PATCH v1] net: wireless: ath9k: fix parameter check in ath9k_init_debug()
@ 2023-07-12 11:47 Minjie Du
2023-08-08 13:30 ` Toke Høiland-Jørgensen
2023-08-22 13:36 ` Kalle Valo
0 siblings, 2 replies; 3+ messages in thread
From: Minjie Du @ 2023-07-12 11:47 UTC (permalink / raw)
To: Toke Høiland-Jørgensen, Kalle Valo,
open list:QUALCOMM ATHEROS ATH9K WIRELESS DRIVER, open list
Cc: opensource.kernel, Minjie Du
Make IS_ERR() judge the debugfs_create_dir() function return
in ath9k_init_debug()
Signed-off-by: Minjie Du <duminjie@vivo.com>
---
drivers/net/wireless/ath/ath9k/debug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c
index fb7a2952d..995c6e705 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
--
2.39.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v1] net: wireless: ath9k: fix parameter check in ath9k_init_debug()
2023-07-12 11:47 [PATCH v1] net: wireless: ath9k: fix parameter check in ath9k_init_debug() Minjie Du
@ 2023-08-08 13:30 ` Toke Høiland-Jørgensen
2023-08-22 13:36 ` Kalle Valo
1 sibling, 0 replies; 3+ messages in thread
From: Toke Høiland-Jørgensen @ 2023-08-08 13:30 UTC (permalink / raw)
To: Minjie Du, Kalle Valo,
open list:QUALCOMM ATHEROS ATH9K WIRELESS DRIVER, open list
Cc: opensource.kernel, Minjie Du
Minjie Du <duminjie@vivo.com> writes:
> 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>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] net: wireless: ath9k: fix parameter check in ath9k_init_debug()
2023-07-12 11:47 [PATCH v1] net: wireless: ath9k: fix parameter check in ath9k_init_debug() Minjie Du
2023-08-08 13:30 ` Toke Høiland-Jørgensen
@ 2023-08-22 13:36 ` Kalle Valo
1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2023-08-22 13:36 UTC (permalink / raw)
To: Minjie Du
Cc: Toke Høiland-Jørgensen,
open list:QUALCOMM ATHEROS ATH9K WIRELESS DRIVER, open list,
opensource.kernel, Minjie Du
Minjie Du <duminjie@vivo.com> wrote:
> 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>
Patch applied to ath-next branch of ath.git, thanks.
6edb4ba6fb5b wifi: ath9k: fix parameter check in ath9k_init_debug()
--
https://patchwork.kernel.org/project/linux-wireless/patch/20230712114740.13226-1-duminjie@vivo.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-08-22 13:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-12 11:47 [PATCH v1] net: wireless: ath9k: fix parameter check in ath9k_init_debug() Minjie Du
2023-08-08 13:30 ` Toke Høiland-Jørgensen
2023-08-22 13:36 ` Kalle Valo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.