[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230712131407.16462-1-duminjie@vivo.com>
Date: Wed, 12 Jul 2023 21:14:06 +0800
From: Minjie Du <duminjie@...o.com>
To: Gregory Greenman <gregory.greenman@...el.com>,
Kalle Valo <kvalo@...nel.org>, Minjie Du <duminjie@...o.com>,
Stephen Rothwell <sfr@...b.auug.org.au>,
linux-wireless@...r.kernel.org (open list:INTEL WIRELESS WIFI LINK
(iwlwifi)), linux-kernel@...r.kernel.org (open list)
Cc: opensource.kernel@...o.com
Subject: [PATCH v1] drivers/net: intel: iwlwifi: fix two parameters check in iwl_mei_dbgfs_register()
Make IS_ERR() judge the debugfs_create_dir() function return
in iwl_mei_dbgfs_register().
Signed-off-by: Minjie Du <duminjie@...o.com>
---
drivers/net/wireless/intel/iwlwifi/mei/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/intel/iwlwifi/mei/main.c b/drivers/net/wireless/intel/iwlwifi/mei/main.c
index 54445f39f..e5d203a62 100644
--- a/drivers/net/wireless/intel/iwlwifi/mei/main.c
+++ b/drivers/net/wireless/intel/iwlwifi/mei/main.c
@@ -1888,7 +1888,7 @@ static void iwl_mei_dbgfs_register(struct iwl_mei *mei)
{
mei->dbgfs_dir = debugfs_create_dir(KBUILD_MODNAME, NULL);
- if (!mei->dbgfs_dir)
+ if (IS_ERR(mei->dbgfs_dir))
return;
debugfs_create_ulong("status", S_IRUSR,
--
2.39.0
Powered by blists - more mailing lists