Re: [PATCH v2] migration: Unlock mutex in error case

2023-11-03 Thread Peter Xu
On Fri, Nov 03, 2023 at 08:42:45AM +0100, Juan Quintela wrote: > 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 >

[PATCH v2] migration: Unlock mutex in error case

2023-11-03 Thread Juan Quintela
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") Signed-off-by: Juan Quintela --- migration/ram.c | 106 ++