]> git.baikalelectronics.ru Git - kernel.git/commit
proc: use kzalloc instead of kmalloc and memset
authoryan <clouds.yan@gmail.com>
Fri, 5 Oct 2012 00:15:43 +0000 (17:15 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Oct 2012 18:05:18 +0000 (03:05 +0900)
commitf10a4b77531c8f525d706636440717d7999a890c
treee274bf5906900080e0975ea2196adcf70641f7e1
parent3cd453cab1cd4190e106149f9edc7695e29d300b
proc: use kzalloc instead of kmalloc and memset

Part of the memory will be written twice after this change, but that
should be negligible.

[akpm@linux-foundation.org: fix __proc_create() coding-style issues, remove unneeded zero-initialisations]
Signed-off-by: yan <clouds.yan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/generic.c