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 5c7bcf9663d34af3f83e0230189faae44c899af0..b45e229bc42c1b0e56c04c452c4b545533e9c100 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;
        }