commit | 9e40b67bf2bfaa40b28354c501a72fd001a1397a | [log] [tgz] |
---|---|---|
author | Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp> | Tue Jun 19 22:04:56 2012 +0900 |
committer | Avi Kivity <avi@redhat.com> | Tue Jun 19 16:10:25 2012 +0300 |
tree | ac0cb17a5a5d869d01a3288ff6ab4003628a7adc | |
parent | a1e4ccb990447df0fe83d164d9a7bc2e6c4b7db7 [diff] |
KVM: Use kvm_kvfree() to free memory allocated by kvm_kvzalloc() The following commit did not care about the error handling path: commit c1a7b32a14138f908df52d7c53b5ce3415ec6b50 KVM: Avoid wasting pages for small lpage_info arrays If memory allocation fails, vfree() will be called with the address returned by kzalloc(). This patch fixes this issue. Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp> Signed-off-by: Avi Kivity <avi@redhat.com>