Skip to content
Commit 0b8e2c10 authored by Peter Maydell's avatar Peter Maydell Committed by Paolo Bonzini
Browse files

exec.c: Use atomic_rcu_read() to access dispatch in memory_region_section_get_iotlb()



When accessing the dispatch pointer in an AddressSpace within an RCU
critical section we should always use atomic_rcu_read(). Fix an
access within memory_region_section_get_iotlb() which was incorrectly
doing a direct pointer access.

Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Message-Id: <1437391637-31576-1-git-send-email-peter.maydell@linaro.org>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent dc94bd91
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment