]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: ath9k: use IS_ERR() with debugfs_create_dir()
authorWang Ming <machel@vivo.com>
Thu, 13 Jul 2023 03:03:44 +0000 (11:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:48:07 +0000 (09:48 +0200)
commit5dbb17ce201e7363843b8ca23f2a8cd29bc83257
tree3dc5932b1221fe458e8cdb1762616b537d887c9c
parent2dba15a00998750c86d0bf5b6e89818d412fa088
wifi: ath9k: use IS_ERR() with debugfs_create_dir()

[ Upstream commit 1e4134610d93271535ecf900a676e1f094e9944c ]

The debugfs_create_dir() function returns error pointers,
it never returns NULL. Most incorrect error checks were fixed,
but the one in ath9k_htc_init_debug() was forgotten.

Fix the remaining error check.

Fixes: e5facc75fa91 ("ath9k_htc: Cleanup HTC debugfs")
Signed-off-by: Wang Ming <machel@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/20230713030358.12379-1-machel@vivo.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath9k/htc_drv_debug.c