From: Cong Wang <[email protected]>
Date: Tue, 7 Feb 2017 12:59:46 -0800
> Andrey reported a kernel crash:
...
> This is because we miss a check for NULL pointer for skb_peek() when
> the queue is empty. Other places already have the same check.
>
> Fixes: c319b4d76b9e ("net: ipv4: add IPPROTO_ICMP socket kind")
> Reported-by: Andrey Konovalov <[email protected]>
> Tested-by: Andrey Konovalov <[email protected]>
> Signed-off-by: Cong Wang <[email protected]>
Applied and queued up for -stable, thanks Cong.