6lowpan: fix hop limit compression
authoralex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com>
Mon, 25 Jun 2012 03:49:02 +0000 (03:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jun 2012 23:40:31 +0000 (16:40 -0700)
Add missing pointer shift for the 'default' case.

Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Cc: Tony Cheneau <tony.cheneau+zigbeedev@amnesiak.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan.c

index 5c7bcf9..b45e229 100644 (file)
@@ -492,6 +492,7 @@ static int lowpan_header_create(struct sk_buff *skb,
                break;
        default:
                *hc06_ptr = hdr->hop_limit;
+               hc06_ptr += 1;
                break;
        }