From b39b61e410022f96ceb53d4381d25cba5126ac44 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 7 Mar 2018 14:02:38 +0100 Subject: memory: fix flatview_access_valid RCU read lock/unlock imbalance Fixes: 11e732a5ed46903f997985bed4c3767ca28a7eb6 Reported-by: Cornelia Huck Reported-by: luigi burdo Signed-off-by: Paolo Bonzini Tested-by: Cornelia Huck Tested-by: Thomas Huth Message-id: 20180307130238.19358-1-pbonzini@redhat.com Signed-off-by: Peter Maydell --- exec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/exec.c b/exec.c index 604f03c535..a9181e6417 100644 --- a/exec.c +++ b/exec.c @@ -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; } } -- cgit v1.2.3