[PATCH 1/2] mtd: docprobe: use kzalloc instead

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Dec 29 16:31:05 EST 2011


Le Thu, 29 Dec 2011 17:47:05 +0200,
Artem Bityutskiy <dedekind1 at gmail.com> a écrit :

> +		mtd = kzmalloc(sizeof(struct DiskOnChip) + sizeof(struct mtd_info), GFP_KERNEL);

I guess you mean kzalloc() and not kzmalloc().

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the linux-mtd mailing list