]> git.baikalelectronics.ru Git - kernel.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)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 2 Jan 2019 16:00:10 +0000 (11:00 -0500)
commit0d4adc29088d49de5dd1908c3eacd20c3eb1cc7f
treefe0a1cbbe09216545c426d7743f954feff8c07a3
parente0f270efc94b6d690ccec300df947a3d8bc2f46a
pvcalls-front: don't try to free unallocated rings

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>
drivers/xen/pvcalls-front.c