diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-12-20 09:25:54 +0100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-12-20 09:25:54 +0100 |
commit | c6e6ca712b5cc06a662f900c0484d49d7334af64 (patch) | |
tree | 2970917a32e2894a0dbb87fcb9f351baa0d8d125 /net/ax25/ax25_in.c | |
parent | [IPV4] ip_gre: set mac_header correctly in receive path (diff) | |
download | linux-c6e6ca712b5cc06a662f900c0484d49d7334af64.tar.xz linux-c6e6ca712b5cc06a662f900c0484d49d7334af64.zip |
[NET]: Correct two mistaken skb_reset_mac_header() conversions.
This operation helper abstracts:
skb->mac_header = skb->data;
but it was done in two more places which were actually:
skb->mac_header = skb->network_header;
and those are corrected here.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ax25/ax25_in.c')
-rw-r--r-- | net/ax25/ax25_in.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ax25/ax25_in.c b/net/ax25/ax25_in.c index 3b7d1720c2ee..d1be080dcb25 100644 --- a/net/ax25/ax25_in.c +++ b/net/ax25/ax25_in.c @@ -124,7 +124,7 @@ int ax25_rx_iframe(ax25_cb *ax25, struct sk_buff *skb) } skb_pull(skb, 1); /* Remove PID */ - skb_reset_mac_header(skb); + skb->mac_header = skb->network_header; skb_reset_network_header(skb); skb->dev = ax25->ax25_dev->dev; skb->pkt_type = PACKET_HOST; |