Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188151
b: refs/heads/master
c: 3feec90
h: refs/heads/master
i:
  188149: 25bc715
  188147: 5fef227
  188143: e40e020
v: v3
  • Loading branch information
James Chapman authored and David S. Miller committed Mar 16, 2010
1 parent 26fe39e commit f8e7081
Show file tree
Hide file tree
Showing 2 changed files with 3 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: d0cad871703b898a442e4049c532ec39168e5b57
refs/heads/master: 3feec9095d12e311b7d4eb7fe7e5dfa75d4a72a5
3 changes: 2 additions & 1 deletion trunk/drivers/net/pppol2tp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,8 @@ static int pppol2tp_xmit(struct ppp_channel *chan, struct sk_buff *skb)
/* Calculate UDP checksum if configured to do so */
if (sk_tun->sk_no_check == UDP_CSUM_NOXMIT)
skb->ip_summed = CHECKSUM_NONE;
else if (!(skb_dst(skb)->dev->features & NETIF_F_V4_CSUM)) {
else if ((skb_dst(skb) && skb_dst(skb)->dev) &&
(!(skb_dst(skb)->dev->features & NETIF_F_V4_CSUM))) {
skb->ip_summed = CHECKSUM_COMPLETE;
csum = skb_checksum(skb, 0, udp_len, 0);
uh->check = csum_tcpudp_magic(inet->inet_saddr,
Expand Down

0 comments on commit f8e7081

Please sign in to comment.