llc: llc_cmsg_rcv was getting called after sk_eat_skb.
authorAlex Juncu <ajuncu@ixiacom.com>
Thu, 15 Dec 2011 23:01:25 +0000 (23:01 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Jan 2012 22:17:27 +0000 (14:17 -0800)
commit3515cb57df914810fc5c0cca5037e2ad3663c6ad
tree4d8a92e6761968f455b4333391737db0bae29ed9
parent9bf78b2e47083ebf3363c7017cbcda8bb9ceb30b
llc: llc_cmsg_rcv was getting called after sk_eat_skb.

[ Upstream commit 9cef310fcdee12b49b8b4c96fd8f611c8873d284 ]

Received non stream protocol packets were calling llc_cmsg_rcv that used a
skb after that skb was released by sk_eat_skb. This caused received STP
packets to generate kernel panics.

Signed-off-by: Alexandru Juncu <ajuncu@ixiacom.com>
Signed-off-by: Kunjan Naik <knaik@ixiacom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/llc/af_llc.c