aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2007-10-02 15:46:52 +1000
committerAvi Kivity <avi@qumranet.com>2007-10-02 10:36:33 +0200
commit1a576f4d29183d25facd848d94e55c48d7826810 (patch)
treeb085efbd94e09c353a74ad5105713a1a3a2aa232
parent75574ff279a5f6c909c9cd1202658e3154ca9c0a (diff)
kvm: external module: fix kzalloc macrokvm-45
This was committed in 1d55c096cce99f069d9ac8e3b2195d45adce9549 on Feb 7, and clearly never actually compiled. Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r--kvm/kernel/external-module-compat.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvm/kernel/external-module-compat.h b/kvm/kernel/external-module-compat.h
index 2e1a9f11b..8e62efb03 100644
--- a/kvm/kernel/external-module-compat.h
+++ b/kvm/kernel/external-module-compat.h
@@ -126,9 +126,9 @@ static inline int smp_call_function_single2(int cpu, void (*func)(void *info),
#define kzalloc(size,flags) \
({ \
void *__ret = kmalloc(size, flags); \
- if (__ret)
- memset(__ret, 0, size);
- __ret;
+ if (__ret) \
+ memset(__ret, 0, size); \
+ __ret; \
})
#endif
#endif