···802802803803 /* check for address/control and protocol compression */804804 p = skb->data;805805- if (p[0] == PPP_ALLSTATIONS && p[1] == PPP_UI) {805805+ if (p[0] == PPP_ALLSTATIONS) {806806 /* chop off address/control */807807- if (skb->len < 3)807807+ if (p[1] != PPP_UI || skb->len < 3)808808 goto err;809809 p = skb_pull(skb, 2);810810 }