summaryrefslogtreecommitdiffstats
path: root/net/netrom
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2007-12-20 00:25:54 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2007-12-20 00:25:54 -0800
commitc6e6ca712b5cc06a662f900c0484d49d7334af64 (patch)
tree2970917a32e2894a0dbb87fcb9f351baa0d8d125 /net/netrom
parent1d0691674764098304ae4c63c715f5883b4d3784 (diff)
downloadop-kernel-dev-c6e6ca712b5cc06a662f900c0484d49d7334af64.zip
op-kernel-dev-c6e6ca712b5cc06a662f900c0484d49d7334af64.tar.gz
[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/netrom')
-rw-r--r--net/netrom/nr_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netrom/nr_dev.c b/net/netrom/nr_dev.c
index 8c68da5..6caf459 100644
--- a/net/netrom/nr_dev.c
+++ b/net/netrom/nr_dev.c
@@ -56,7 +56,7 @@ int nr_rx_ip(struct sk_buff *skb, struct net_device *dev)
/* Spoof incoming device */
skb->dev = dev;
- skb_reset_mac_header(skb);
+ skb->mac_header = skb->network_header;
skb_reset_network_header(skb);
skb->pkt_type = PACKET_HOST;
OpenPOWER on IntegriCloud