[PATCH] ipw2200: Do not continue loading the firmware if kmalloc fails
Signed-off-by: Ingo Molnar <mingo@elte.hu> Cc: "Zhu, Yi" <yi.zhu@intel.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
5dc81c3071
commit
d0b526b715
@ -10663,6 +10663,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user