From: Takuya Yoshikawa Date: Tue, 19 Jun 2012 13:04:56 +0000 (+0900) Subject: KVM: Use kvm_kvfree() to free memory allocated by kvm_kvzalloc() X-Git-Tag: v3.6-rc1~124^2~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e40b67bf2bfaa40b28354c501a72fd001a1397a;p=pandora-kernel.git 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 Signed-off-by: Avi Kivity --- Reading git-diff-tree failed