diff options
Diffstat (limited to 'net/wanrouter/wanmain.c')
-rw-r--r-- | net/wanrouter/wanmain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wanrouter/wanmain.c b/net/wanrouter/wanmain.c index c49e223084f1..7a19e0ede289 100644 --- a/net/wanrouter/wanmain.c +++ b/net/wanrouter/wanmain.c | |||
@@ -277,8 +277,8 @@ int wanrouter_encapsulate(struct sk_buff *skb, struct net_device *dev, | |||
277 | skb_push(skb, 7); | 277 | skb_push(skb, 7); |
278 | skb->data[0] = 0; | 278 | skb->data[0] = 0; |
279 | skb->data[1] = NLPID_SNAP; | 279 | skb->data[1] = NLPID_SNAP; |
280 | memcpy(&skb->data[2], wanrouter_oui_ether, | 280 | skb_copy_to_linear_data_offset(skb, 2, wanrouter_oui_ether, |
281 | sizeof(wanrouter_oui_ether)); | 281 | sizeof(wanrouter_oui_ether)); |
282 | *((unsigned short*)&skb->data[5]) = htons(type); | 282 | *((unsigned short*)&skb->data[5]) = htons(type); |
283 | break; | 283 | break; |
284 | 284 | ||