Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333999
b: refs/heads/master
c: 5aa8b57
h: refs/heads/master
i:
  333997: a74f70a
  333995: d34958a
  333991: 2d91e85
  333983: 53ea32d
v: v3
  • Loading branch information
Amerigo Wang authored and David S. Miller committed Oct 11, 2012
1 parent 5c67a8e commit 404ea3b
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 85457685e0e314f6902caaef976b3fd8ef4f51b4
refs/heads/master: 5aa8b572007c4bca1e6d3dd4c4820f1ae49d6bb2
2 changes: 1 addition & 1 deletion trunk/net/core/pktgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -2927,7 +2927,7 @@ static struct sk_buff *fill_packet_ipv6(struct net_device *odev,
sizeof(struct ipv6hdr) - sizeof(struct udphdr) -
pkt_dev->pkt_overhead;

if (datalen < sizeof(struct pktgen_hdr)) {
if (datalen < 0 || datalen < sizeof(struct pktgen_hdr)) {
datalen = sizeof(struct pktgen_hdr);
net_info_ratelimited("increased datalen to %d\n", datalen);
}
Expand Down

0 comments on commit 404ea3b

Please sign in to comment.