Commit 185bcd17 authored by Mariusz Kozlowski's avatar Mariusz Kozlowski Committed by Ralf Baechle

[MIPS] thread_info.h: kmalloc + memset conversion to kzalloc

Signed-off-by: default avatarMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 00be0f30
...@@ -87,9 +87,8 @@ register struct thread_info *__current_thread_info __asm__("$28"); ...@@ -87,9 +87,8 @@ register struct thread_info *__current_thread_info __asm__("$28");
({ \ ({ \
struct thread_info *ret; \ struct thread_info *ret; \
\ \
ret = kmalloc(THREAD_SIZE, GFP_KERNEL); \ ret = kzalloc(THREAD_SIZE, GFP_KERNEL); \
if (ret) \ \
memset(ret, 0, THREAD_SIZE); \
ret; \ ret; \
}) })
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment