Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195123
b: refs/heads/master
c: 3e02a06
h: refs/heads/master
i:
  195121: 0cefeac
  195119: fa3f4bd
v: v3
  • Loading branch information
Dan Carpenter authored and Inaky Perez-Gonzalez committed May 11, 2010
1 parent e99f570 commit 8f6090c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: d3e56c0ad8a2dab7ffd6179b64f00702149e5c9a
refs/heads/master: 3e02a06ae3dce2eb804bb4afadb7067c80d6c096
9 changes: 4 additions & 5 deletions trunk/drivers/net/wimax/i2400m/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,17 +300,16 @@ void i2400m_rx_ctl_ack(struct i2400m *i2400m,
d_printf(1, dev, "Huh? waiter for command reply cancelled\n");
goto error_waiter_cancelled;
}
if (ack_skb == NULL) {
if (IS_ERR(ack_skb))
dev_err(dev, "CMD/GET/SET ack: cannot allocate SKB\n");
i2400m->ack_skb = ERR_PTR(-ENOMEM);
} else
i2400m->ack_skb = ack_skb;
i2400m->ack_skb = ack_skb;
spin_unlock_irqrestore(&i2400m->rx_lock, flags);
complete(&i2400m->msg_completion);
return;

error_waiter_cancelled:
kfree_skb(ack_skb);
if (!IS_ERR(ack_skb))
kfree_skb(ack_skb);
error_no_waiter:
spin_unlock_irqrestore(&i2400m->rx_lock, flags);
return;
Expand Down

0 comments on commit 8f6090c

Please sign in to comment.