diff options
author | Luc Michel <luc.michel@greensocs.com> | 2020-01-29 15:49:48 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-02-12 16:23:01 +0100 |
commit | e261b36810de8dfd825b6b01fff43a6bd6f2bd8d (patch) | |
tree | d8a8e292d9ae86b78c4560e849e79098766a8264 /util | |
parent | 4903602eae82787b1ade04efd9bb5949c04571d6 (diff) | |
download | qemu-e261b36810de8dfd825b6b01fff43a6bd6f2bd8d.zip qemu-e261b36810de8dfd825b6b01fff43a6bd6f2bd8d.tar.gz qemu-e261b36810de8dfd825b6b01fff43a6bd6f2bd8d.tar.bz2 |
seqlock: fix seqlock_write_unlock_impl function
The seqlock write unlock function was incorrectly calling
seqlock_write_begin() instead of seqlock_write_end(), and was releasing
the lock before incrementing the sequence. This could lead to a race
condition and a corrupted sequence number becoming odd even though the
lock is not held.
Signed-off-by: Luc Michel <luc.michel@greensocs.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200129144948.2161551-1-luc.michel@greensocs.com>
Fixes: 988fcafc73 ("seqlock: add QemuLockable support", 2018-08-23)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions