Loading net/phonet/af_phonet.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -144,8 +144,8 @@ static int pn_send(struct sk_buff *skb, struct net_device *dev, struct phonethdr *ph; struct phonethdr *ph; int err; int err; if (skb->len + 2 > 0xffff) { if (skb->len + 2 > 0xffff /* Phonet length field limit */ || /* Phonet length field would overflow */ skb->len + sizeof(struct phonethdr) > dev->mtu) { err = -EMSGSIZE; err = -EMSGSIZE; goto drop; goto drop; } } Loading Loading
net/phonet/af_phonet.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -144,8 +144,8 @@ static int pn_send(struct sk_buff *skb, struct net_device *dev, struct phonethdr *ph; struct phonethdr *ph; int err; int err; if (skb->len + 2 > 0xffff) { if (skb->len + 2 > 0xffff /* Phonet length field limit */ || /* Phonet length field would overflow */ skb->len + sizeof(struct phonethdr) > dev->mtu) { err = -EMSGSIZE; err = -EMSGSIZE; goto drop; goto drop; } } Loading