]> git.baikalelectronics.ru Git - kernel.git/commit
staging: unisys: visorutil: Use kzalloc instead of kmalloc with memset
authorIulia Manda <iulia.manda21@gmail.com>
Tue, 11 Mar 2014 23:28:53 +0000 (01:28 +0200)
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Thu, 13 Mar 2014 23:49:02 +0000 (16:49 -0700)
commita89e33bdfa01b282684989ebf8884423e7c75e37
tree9a12e9c69200e1347df282e03c9de08f5bd026b3
parent5ee8bc6b701b5b37a6177916e6e9b687f88de34e
staging: unisys: visorutil: Use kzalloc instead of kmalloc with memset

Fix coccinelle warnings of better allocation by using kzalloc.
In these cases, kzalloc is preferred, as kmalloc may fail if it does not find
contiguous memory.

Signed-off-by: Iulia Manda <iulia.manda21@gmail.com>
Acked-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
drivers/staging/unisys/visorutil/procobjecttree.c