]> asedeno.scripts.mit.edu Git - linux.git/commit
Staging: ccree: Use kcalloc instead of kzalloc
authorSrishti Sharma <srishtishar@gmail.com>
Thu, 14 Sep 2017 12:48:13 +0000 (18:18 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Sep 2017 10:00:07 +0000 (12:00 +0200)
commitaabdabad35d3c01f977084221afe09cab5dfa8af
tree74b6f10863153d0a9243cb9501b38795f3ac9434
parent2b8b4a2762f55627e96834776199eb8f078ae284
Staging: ccree: Use kcalloc instead of kzalloc

Use kcalloc instead of kzalloc to check for overflow before
multiplication. Done using the following semantic patch by
coccinelle.

http://coccinelle.lip6.fr/rules/kzalloc.cocci

Signed-off-by: Srishti Sharma <srishtishar@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/ssi_sysfs.c