Commit 385407a
KVM: x86/xen: Fix memory leak in kvm_xen_write_hypercall_page()
Release page irrespectively of kvm_vcpu_write_guest() return value.
Suggested-by: Paul Durrant <[email protected]>
Fixes: 23200b7 ("KVM: x86/xen: intercept xen hypercalls if enabled")
Signed-off-by: Michal Luczaj <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Paul Durrant <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>1 parent 23e528d commit 385407a
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1069 | 1069 | | |
1070 | 1070 | | |
1071 | 1071 | | |
| 1072 | + | |
1072 | 1073 | | |
1073 | 1074 | | |
1074 | 1075 | | |
| |||
1079 | 1080 | | |
1080 | 1081 | | |
1081 | 1082 | | |
1082 | | - | |
1083 | | - | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
1084 | 1086 | | |
1085 | | - | |
1086 | 1087 | | |
1087 | 1088 | | |
1088 | 1089 | | |
| |||
0 commit comments