lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <215036450607270605t1f1ea28am44684c13eb2a724f@mail.gmail.com>
Date:	Thu, 27 Jul 2006 21:05:19 +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
Subject: [PATCH]: Add check return result on call create_workqueue

Add check return result on call create_workqueue().

Signed-off-by: Joe Jin <lkmaillist@...il.com>
---

--- linux-2.6.17.7/drivers/net/wireless/ipw2100.c       2006-07-25
11:36:01.000000000 +0800
+++ linux.new/drivers/net/wireless/ipw2100.c    2006-07-27
20:23:03.000000000 +0800
@@ -6110,6 +6110,10 @@
        INIT_STAT(&priv->fw_pend_stat);

        priv->workqueue = create_workqueue(DRV_NAME);
+       if(NULL == priv->workqueue){
+               free_ieee80211(dev);
+               return NULL;
+       }

        INIT_WORK(&priv->reset_work,
                  (void (*)(void *))ipw2100_reset_adapter, priv);


-- 
Regards,
Joe 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

Powered by Openwall GNU/*/Linux Powered by OpenVZ