ipw2200: Do not continue loading the firmware if kmalloc fails
Subsystems (3)
PATCH 6/18 ipw2200: Do not continue loading the firmware if kmalloc fails
Signed-off-by Ingo Molnar <[email protected]>
Cc "Zhu, Yi" <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/net/wireless/ipw2200.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
bb9de6f2888b04991bc634e9700114d3b415cdcb
drivers/net/wireless/ipw2200.c +1 -0
@@ -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