Signed-off-by: Changli Gao <xiaosuo@gmail.com> Reviewed-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
···4545#include <linux/completion.h>4646#include <linux/init.h>4747#include <linux/slab.h>4848+#include <asm/unaligned.h>4849#include <asm/uaccess.h>49505051#define PPP_VERSION "2.4.2"···564563 int islcp;565564566565 data = skb->data;567567- proto = (data[0] << 8) + data[1];566566+ proto = get_unaligned_be16(data);568567569568 /* LCP packets with codes between 1 (configure-request)570569 * and 7 (code-reject) must be sent as though no options