linux-user/syscall: extend lock around cpu-list
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 30 Sep 2016 21:31:01 +0000 (22:31 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 4 Oct 2016 08:00:26 +0000 (10:00 +0200)
commitdd1f63493adbbb06fa16ed15f8fc16584f55ee81
tree79780c3a96716ede1fbd974bcc8e74916eb380f7
parenta890643958f03aaa344290700093b280cb606c28
linux-user/syscall: extend lock around cpu-list

There is a potential race if several threads exit at once. To serialise
the exits extend the lock above the initial checking of the CPU list.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20160930213106.20186-11-alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
linux-user/syscall.c