提交 33bbf959 编写于 作者: M Mariusz Kozlowski 提交者: Linus Torvalds

include/asm-frv/thread_info.h: kmalloc + memset conversion to kzalloc

Signed-off-by: NMariusz Kozlowski <m.kozlowski@tuxland.pl>
Acked-By: NDavid Howells <dhowells@redhat.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 ef0fce85
...@@ -88,9 +88,8 @@ register struct thread_info *__current_thread_info asm("gr15"); ...@@ -88,9 +88,8 @@ register struct thread_info *__current_thread_info asm("gr15");
({ \ ({ \
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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册