Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119097
b: refs/heads/master
c: ebfe92c
h: refs/heads/master
i:
  119095: eaa96b3
v: v3
  • Loading branch information
Rémi Denis-Courmont authored and David S. Miller committed Nov 17, 2008
1 parent 9d923d1 commit 9772310
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: eb7c3adb1ca92450870dbb0d347fc986cd5e2af4
refs/heads/master: ebfe92ca65c780334bdf847ddc4eca15835bd9c0
4 changes: 2 additions & 2 deletions trunk/net/phonet/af_phonet.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ static int pn_send(struct sk_buff *skb, struct net_device *dev,
struct phonethdr *ph;
int err;

if (skb->len + 2 > 0xffff) {
/* Phonet length field would overflow */
if (skb->len + 2 > 0xffff /* Phonet length field limit */ ||
skb->len + sizeof(struct phonethdr) > dev->mtu) {
err = -EMSGSIZE;
goto drop;
}
Expand Down

0 comments on commit 9772310

Please sign in to comment.