Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298473
b: refs/heads/master
c: e90c7e7
h: refs/heads/master
i:
  298471: 0f414ca
v: v3
  • Loading branch information
Santosh Nayak authored and John W. Linville committed Mar 28, 2012
1 parent c85a91d commit 3552aca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 75836b8daefdde84f8b5dde1be5b67d858139df3
refs/heads/master: e90c7e712980bf794f88f749e2a1270e4a4a116e
8 changes: 8 additions & 0 deletions trunk/drivers/net/wireless/orinoco/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1336,6 +1336,10 @@ static void qbuf_scan(struct orinoco_private *priv, void *buf,
unsigned long flags;

sd = kmalloc(sizeof(*sd), GFP_ATOMIC);
if (!sd) {
printk(KERN_ERR "%s: failed to alloc memory\n", __func__);
return;
}
sd->buf = buf;
sd->len = len;
sd->type = type;
Expand All @@ -1353,6 +1357,10 @@ static void qabort_scan(struct orinoco_private *priv)
unsigned long flags;

sd = kmalloc(sizeof(*sd), GFP_ATOMIC);
if (!sd) {
printk(KERN_ERR "%s: failed to alloc memory\n", __func__);
return;
}
sd->len = -1; /* Abort */

spin_lock_irqsave(&priv->scan_lock, flags);
Expand Down

0 comments on commit 3552aca

Please sign in to comment.