Skip to content
Commit e7b95bd4 authored by Josh Triplett's avatar Josh Triplett Committed by Will Deacon
Browse files

kvm__emulate_io: Don't call br_read_unlock() twice on IO error



The IO error path in kvm__emulate_io would call br_read_unlock(), then
goto error, which would call br_read_unlock() again.  Refactor the
control flow to have only one exit path and one call to
br_read_unlock().

Signed-off-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent eef27ae3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment