]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/blkback: use kmem_cache_zalloc instead of kmem_cache_alloc/memset
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 27 Aug 2012 04:28:57 +0000 (12:28 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 5 Dec 2012 17:04:11 +0000 (12:04 -0500)
commit942bc6759136bb322fdcb5b3c883ee64a24a998c
tree800ec20af3d0996ee1345cf3ebbcc03e839f8a87
parent210971308a2e76b9f250b414d9f709e75229bc03
xen/blkback: use kmem_cache_zalloc instead of kmem_cache_alloc/memset

Using kmem_cache_zalloc() instead of kmem_cache_alloc() and memset().

spatch with a semantic match is used to found this problem.
(http://coccinelle.lip6.fr/)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit 6dacb8770e3b93dff829676f6c752315ff76fc0f)
drivers/block/xen-blkback/xenbus.c