diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2018-03-07 14:02:38 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-03-09 15:55:20 +0000 |
commit | b39b61e410022f96ceb53d4381d25cba5126ac44 (patch) | |
tree | 68d20f7644622f0137e162d4cd4d06d311e93c06 | |
parent | cffad426f520d39c19db64485d8a429fc95b8aca (diff) |
memory: fix flatview_access_valid RCU read lock/unlock imbalance
Fixes: 11e732a5ed46903f997985bed4c3767ca28a7eb6
Reported-by: Cornelia Huck <cohuck@redhat.com>
Reported-by: luigi burdo <intermediadc@hotmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Tested-by: Cornelia Huck <cohuck@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Message-id: 20180307130238.19358-1-pbonzini@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | exec.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -3393,7 +3393,6 @@ static bool flatview_access_valid(FlatView *fv, hwaddr addr, int len, if (!memory_access_is_direct(mr, is_write)) { l = memory_access_size(mr, l, addr); if (!memory_region_access_valid(mr, xlat, l, is_write)) { - rcu_read_unlock(); return false; } } |