net: 6lowpan: fixup for code movement
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Jan 2014 01:52:43 +0000 (12:52 +1100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jan 2014 00:43:03 +0000 (16:43 -0800)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan_iphc.c

index 083f905..860aa2d 100644 (file)
@@ -678,7 +678,7 @@ int lowpan_header_compress(struct sk_buff *skb, struct net_device *dev,
                        hc06_ptr += 3;
                } else {
                        /* compress nothing */
-                       memcpy(hc06_ptr, &hdr, 4);
+                       memcpy(hc06_ptr, hdr, 4);
                        /* replace the top byte with new ECN | DSCP format */
                        *hc06_ptr = tmp;
                        hc06_ptr += 4;