Tag: 93623c87a38533be4d8a636f29e58dbd01d3841b

[media] soc_camera: use kmemdup()

Author: Mauro Carvalho Chehab <m.chehab@samsung.com> 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 — drivers/media/platform/soc_camera/soc_camera.c | 4 +— 1 file changed, 1 insertion(+), 3 deletions(-)   diff –git a/drivers/media/platform/soc_camera/soc_camera.c b/drivers/media/platform/soc_camera/soc_camera.c index f4308fe..ee8cdc9 100644 — a/drivers/media/platform/soc_camera/soc_camera.c +++ …

Continue reading