From: Mauro Carvalho Chehab Date: Wed, 3 Sep 2014 17:55:19 +0000 (-0300) Subject: [media] soc_camera: use kmemdup() X-Git-Tag: fixes-against-v3.18-rc2~130^2^2~281 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93623c87a38533be4d8a636f29e58dbd01d3841b;p=pandora-kernel.git [media] soc_camera: use kmemdup() Instead of calling kzalloc and then copying, use kmemdup(). That avoids zeroing the data structure before copying. Found by coccinelle. Acked-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed