Commit [56116b]  Maximize  Restore  History

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 <>
Acked-by: Luis R. Rodriguez <>
Signed-off-by: Peter P Waskiewicz Jr <>

Iulia Manda Iulia Manda 2014-03-11

Peter P Waskiewicz Jr Peter P Waskiewicz Jr 2014-03-13

changed drivers/staging/unisys/visorutil/procobjecttree.c
drivers/staging/unisys/visorutil/procobjecttree.c Diff Switch to side-by-side view

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks