commit | e7b95bd430760d8b895520f54fdf9d19972904d2 | [log] [tgz] |
---|---|---|
author | Josh Triplett <josh@joshtriplett.org> | Thu Aug 06 19:39:44 2015 +0100 |
committer | Will Deacon <will.deacon@arm.com> | Fri Aug 07 15:31:37 2015 +0100 |
tree | 6e5292ccc522dea98fd3fda24de22169aefbc373 | |
parent | eef27ae368562bcce4f8a2b65822b307da0d4146 [diff] |
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: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Will Deacon <will.deacon@arm.com>