Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43229
b: refs/heads/master
c: e6e3f12
h: refs/heads/master
i:
  43227: 10d5afe
v: v3
  • Loading branch information
Yan Burman authored and John W. Linville committed Dec 6, 2006
1 parent 0c7ff49 commit ecf86bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b950e83b69a69f3db5ae64ab70b336886855517f
refs/heads/master: e6e3f12ad713fb878baa8e8b5456874a7ac714d3
3 changes: 1 addition & 2 deletions trunk/drivers/net/wireless/ipw2200.c
Original file line number Diff line number Diff line change
Expand Up @@ -11129,14 +11129,13 @@ static int ipw_up(struct ipw_priv *priv)
return -EIO;

if (cmdlog && !priv->cmdlog) {
priv->cmdlog = kmalloc(sizeof(*priv->cmdlog) * cmdlog,
priv->cmdlog = kcalloc(cmdlog, sizeof(*priv->cmdlog),
GFP_KERNEL);
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;
}
}
Expand Down

0 comments on commit ecf86bb

Please sign in to comment.