Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247956
b: refs/heads/master
c: 69c867c
h: refs/heads/master
v: v3
  • Loading branch information
sjur.brandeland@stericsson.com authored and David S. Miller committed May 23, 2011
1 parent 056712d commit 95debe0
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 138eded8ba1227261a297b32b7940664c14d193e
refs/heads/master: 69c867c90c7fe0773d9aa4e8bbf777f574be13d2
7 changes: 6 additions & 1 deletion trunk/net/caif/caif_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ static int receive(struct sk_buff *skb, struct net_device *dev,
{
struct cfpkt *pkt;
struct caif_device_entry *caifd;
int err;

pkt = cfpkt_fromnative(CAIF_DIR_IN, skb);

Expand All @@ -159,7 +160,11 @@ static int receive(struct sk_buff *skb, struct net_device *dev,
caifd_hold(caifd);
rcu_read_unlock();

caifd->layer.up->receive(caifd->layer.up, pkt);
err = caifd->layer.up->receive(caifd->layer.up, pkt);

/* For -EILSEQ the packet is not freed so so it now */
if (err == -EILSEQ)
cfpkt_destroy(pkt);

/* Release reference to stack upwards */
caifd_put(caifd);
Expand Down

0 comments on commit 95debe0

Please sign in to comment.