Skip to contentSkip to conversation

ipw2200: Do not continue loading the firmware if kmalloc fails

PATCH In review Zhu Yi 1 participant 1 message Apr 13, 2006

Subsystems (3)
lore
Share & tools
lore

Zhu Yi

author
#0 lore raw

PATCH 6/18 ipw2200: Do not continue loading the firmware if kmalloc fails

---

 drivers/net/wireless/ipw2200.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

bb9de6f2888b04991bc634e9700114d3b415cdcb

drivers/net/wireless/ipw2200.c +1 -0
index c38fb90..febee43 100644
@@ -10666,6 +10666,7 @@ static int ipw_up(struct ipw_priv *priv)
 		if (priv->cmdlog == NULL) {
 			IPW_ERROR("Error allocating %d command log entries.\n",
 				  cmdlog);
+			return -ENOMEM;
 		} else {
 			memset(priv->cmdlog, 0, sizeof(*priv->cmdlog) * cmdlog);
 			priv->cmdlog_len = cmdlog;
Signature · 1 line
1.2.6