]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pvcalls-front: properly allocate sk
authorStefano Stabellini <sstabellini@kernel.org>
Fri, 21 Dec 2018 23:06:31 +0000 (15:06 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 09:09:42 +0000 (10:09 +0100)
commit39e3882c0c3643ff54de3d6e05e6bd29e3b3c067
treedd925f7e09808f4e3727fe86164f62e2f1e774a6
parente809f42203383a4a3e2e28dc70c369e6ceaf11a5
pvcalls-front: properly allocate sk

[ Upstream commit beee1fbe8f7d57d6ebaa5188f9f4db89c2077196 ]

Don't use kzalloc: it ends up leaving sk->sk_prot not properly
initialized. Use sk_alloc instead and define our own trivial struct
proto.

Signed-off-by: Stefano Stabellini <stefanos@xilinx.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/xen/pvcalls-front.c