mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
include/asm-m32r/thread_info.h: kmalloc + memset conversion to kzalloc
Signed-off-by: Mariusz Kozlowski <[email protected]> Cc: Hirokazu Takata <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
b2b5d37d7e
commit
3165c0d16a
1 changed files with 2 additions and 3 deletions
|
|
@ -100,9 +100,8 @@ static inline struct thread_info *current_thread_info(void)
|
|||
({ \
|
||||
struct thread_info *ret; \
|
||||
\
|
||||
ret = kmalloc(THREAD_SIZE, GFP_KERNEL); \
|
||||
if (ret) \
|
||||
memset(ret, 0, THREAD_SIZE); \
|
||||
ret = kzalloc(THREAD_SIZE, GFP_KERNEL); \
|
||||
\
|
||||
ret; \
|
||||
})
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in a new issue