Skip to content

Commit

Permalink
memory: fix flatview_access_valid RCU read lock/unlock imbalance
Browse files Browse the repository at this point in the history
Fixes: 11e732a
Reported-by: Cornelia Huck <[email protected]>
Reported-by: luigi burdo <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Tested-by: Cornelia Huck <[email protected]>
Tested-by: Thomas Huth <[email protected]>
Message-id: [email protected]
Signed-off-by: Peter Maydell <[email protected]>
  • Loading branch information
bonzini authored and pm215 committed Mar 9, 2018
1 parent cffad42 commit b39b61e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit b39b61e

Please sign in to comment.