OSDN Git Service

migration: Unlock mutex in error case
authorJuan Quintela <quintela@redhat.com>
Fri, 3 Nov 2023 07:42:45 +0000 (08:42 +0100)
committerJuan Quintela <quintela@redhat.com>
Fri, 3 Nov 2023 09:48:37 +0000 (10:48 +0100)
commit0983125b405c479a6e7eb49b81cfdae969e28cee
treece2c737ede80309780212e708ae4ca5c6d15dec7
parentceddc48278a006e3f13b8a1881676cfb3a1ca99a
migration: Unlock mutex in error case

We were not unlocking bitmap mutex on the error case.  To fix it
forever change to enclose the code with WITH_QEMU_LOCK_GUARD().
Coverity CID 1523750.

Fixes: a2326705e5 ("migration: Stop migration immediately in RDMA error paths")
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231103074245.55166-1-quintela@redhat.com>
migration/ram.c