Uri Lublin wrote:
Signed-off-by: Uri Lublin <[EMAIL PROTECTED]>
---
libkvm/libkvm.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/libkvm/libkvm.c b/libkvm/libkvm.c
index 1e7bbed..62bcb90 100644
--- a/libkvm/libkvm.c
+++ b/libkvm/libkvm.c
@@ -243,6 +243,9 @@ kvm_context_t kvm_init(struct kvm_callbacks *callbacks,
kvm_abi = r;
kvm_page_size = getpagesize();
kvm = malloc(sizeof(*kvm));
+ if (kvm == NULL)
+ goto out_close;
+ memset(kvm, 0, sizeof(*kvm));
kvm->fd = fd;
kvm->vm_fd = -1;
kvm->callbacks = callbacks;
Applied, thanks.
--
error compiling committee.c: too many arguments to function
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html