]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pvcalls-front: don't try to free unallocated rings
authorStefano Stabellini <sstabellini@kernel.org>
Fri, 21 Dec 2018 23:06:30 +0000 (15:06 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 09:09:42 +0000 (10:09 +0100)
commite809f42203383a4a3e2e28dc70c369e6ceaf11a5
treec63d1360f3b57cc0894b72aaaada142d8153ba1a
parent303e67b40a1a32b1ef88b1e8f487ee1686ef7383
pvcalls-front: don't try to free unallocated rings

[ Upstream commit 96283f9a084e23d7cda2d3c5d1ffa6df6cf1ecec ]

inflight_req_id is 0 when initialized. If inflight_req_id is 0, there is
no accept_map to free. Fix the check in pvcalls_front_release.

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