[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <215036450607270607o4955f3cau19669ab9c90e0e94@mail.gmail.com>
Date: Thu, 27 Jul 2006 21:07:51 +0800
From: "Joe Jin" <lkmaillist@...il.com>
To: "Linus Torvalds" <torvalds@...l.org>,
"Andrew Morton" <akpm@...l.org>, ipw2100-admin@...ux.intel.com
Cc: linux-kernel@...r.kernel.org,
"Randy Dunlap" <randy.dunlap@...cle.com>, wim.coekaerts@...cle.com,
wangwengang1976@...il.com
Subject: [PATCH]: Add check return result while call create_workqueue() for ipw2200
Add check return result on call create_workqueue().
Signed-off-by: Joe Jin <lkmaillist@...il.com>
---
--- linux-2.6.17.7/drivers/net/wireless/ipw2200.c 2006-07-27
20:27:01.000000000 +0800
+++ linux.new/drivers/net/wireless/ipw2200.c 2006-07-27
20:28:22.000000000 +0800
@@ -10139,6 +10139,9 @@
int ret = 0;
priv->workqueue = create_workqueue(DRV_NAME);
+ if(NULL == priv->workqueue){
+ return -ENOMEM;
+ }
init_waitqueue_head(&priv->wait_command_queue);
init_waitqueue_head(&priv->wait_state);
--
Regards,
Feng Jin
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists