OSDN Git Service

[media] staging: media: cxd2099: use kzalloc to allocate ci pointer of type struct...
authorDevendra Naga <develkernel412222@gmail.com>
Sat, 4 Aug 2012 17:12:21 +0000 (14:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 12 Aug 2012 10:29:24 +0000 (07:29 -0300)
commitada3678c6a9a0c404acf15e98679315b29689b73
tree830f7d54e59a6e531ffd4151c16db0b4571e19bb
parent4aff355cd51378b6e9ca8c0a3961571ebafd1367
[media] staging: media: cxd2099: use kzalloc to allocate ci pointer of type struct cxd in cxd2099_attach

this does kmalloc and followed by memset, calling kzalloc will actually
sets the allocated memory to zero, use kzalloc instead

Signed-off-by: Devendra Naga <develkernel412222@gmail.com>
Cc: Ralph Metzler <rjkm@metzlerbros.de>
Cc: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/media/cxd2099/cxd2099.c