Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114249
b: refs/heads/master
c: b4bb4ac
h: refs/heads/master
i:
  114247: e23fde1
v: v3
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed Oct 14, 2008
1 parent 7adb6be commit 967240e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 9e9540b8f7b91c8818e2386add3b58a961459166
refs/heads/master: b4bb4ac8cb05ab5c13dfb7b47ef243982d3ad526
8 changes: 5 additions & 3 deletions trunk/net/core/pktgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -2474,7 +2474,7 @@ static inline int process_ipsec(struct pktgen_dev *pkt_dev,
if (ret < 0) {
printk(KERN_ERR "Error expanding "
"ipsec packet %d\n",ret);
return 0;
goto err;
}
}

Expand All @@ -2484,8 +2484,7 @@ static inline int process_ipsec(struct pktgen_dev *pkt_dev,
if (ret) {
printk(KERN_ERR "Error creating ipsec "
"packet %d\n",ret);
kfree_skb(skb);
return 0;
goto err;
}
/* restore ll */
eth = (__u8 *) skb_push(skb, ETH_HLEN);
Expand All @@ -2494,6 +2493,9 @@ static inline int process_ipsec(struct pktgen_dev *pkt_dev,
}
}
return 1;
err:
kfree_skb(skb);
return 0;
}
#endif

Expand Down

0 comments on commit 967240e

Please sign in to comment.