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)
committerRohan Somvanshi <rsomvanshi@nvidia.com>
Wed, 11 Jan 2012 18:22:05 +0000 (10:22 -0800)
commit2c4f8dd8dc5066030cd01559a574b999e967610d
treeac6366f380de4a868604d56e505883c16d93b44b
parent565d99ef64bab4064f911e7898500ef34fc6a882
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>
Change-Id: I3515cb57df914810fc5c0cca5037e2ad3663c6ad
Reviewed-on: http://git-master/r/74215
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
net/llc/af_llc.c