diff options
-rw-r--r-- | include/asm-m32r/thread_info.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/asm-m32r/thread_info.h b/include/asm-m32r/thread_info.h index b7ccc3e6860..c039820dba7 100644 --- a/include/asm-m32r/thread_info.h +++ b/include/asm-m32r/thread_info.h | |||
@@ -100,9 +100,8 @@ static inline struct thread_info *current_thread_info(void) | |||
100 | ({ \ | 100 | ({ \ |
101 | struct thread_info *ret; \ | 101 | struct thread_info *ret; \ |
102 | \ | 102 | \ |
103 | ret = kmalloc(THREAD_SIZE, GFP_KERNEL); \ | 103 | ret = kzalloc(THREAD_SIZE, GFP_KERNEL); \ |
104 | if (ret) \ | 104 | \ |
105 | memset(ret, 0, THREAD_SIZE); \ | ||
106 | ret; \ | 105 | ret; \ |
107 | }) | 106 | }) |
108 | #else | 107 | #else |