Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338408
b: refs/heads/master
c: d1519e2
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Nov 16, 2012
1 parent 7fcf335 commit fd7e5e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 4bd82136cdf04f3a8d50e20c1b76da750f75f2db
refs/heads/master: d1519e23c2b3a518fb41daf3eceae43382433ceb
5 changes: 4 additions & 1 deletion trunk/drivers/tty/ipwireless/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ static struct sk_buff *ipw_packet_received_skb(unsigned char *data,
}

skb = dev_alloc_skb(length + 4);
if (skb == NULL)
return NULL;
skb_reserve(skb, 2);
memcpy(skb_put(skb, length), data, length);

Expand Down Expand Up @@ -397,7 +399,8 @@ void ipwireless_network_packet_received(struct ipw_network *network,

/* Send the data to the ppp_generic module. */
skb = ipw_packet_received_skb(data, length);
ppp_input(network->ppp_channel, skb);
if (skb)
ppp_input(network->ppp_channel, skb);
} else
spin_unlock_irqrestore(&network->lock,
flags);
Expand Down

0 comments on commit fd7e5e6

Please sign in to comment.