This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/media_tree.git tree:

Subject: [media] staging: media: cxd2099: use kzalloc to allocate ci pointer of 
type struct cxd in cxd2099_attach
Author:  Devendra Naga <[email protected]>
Date:    Sat Aug 4 14:12:21 2012 -0300

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 <[email protected]>
Cc: Ralph Metzler <[email protected]>
Cc: Oliver Endriss <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/staging/media/cxd2099/cxd2099.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

---

http://git.linuxtv.org/media_tree.git?a=commitdiff;h=ada3678c6a9a0c404acf15e98679315b29689b73

diff --git a/drivers/staging/media/cxd2099/cxd2099.c 
b/drivers/staging/media/cxd2099/cxd2099.c
index 1678503..4f2235f 100644
--- a/drivers/staging/media/cxd2099/cxd2099.c
+++ b/drivers/staging/media/cxd2099/cxd2099.c
@@ -691,10 +691,9 @@ struct dvb_ca_en50221 *cxd2099_attach(struct cxd2099_cfg 
*cfg,
                return NULL;
        }
 
-       ci = kmalloc(sizeof(struct cxd), GFP_KERNEL);
+       ci = kzalloc(sizeof(struct cxd), GFP_KERNEL);
        if (!ci)
                return NULL;
-       memset(ci, 0, sizeof(*ci));
 
        mutex_init(&ci->lock);
        memcpy(&ci->cfg, cfg, sizeof(struct cxd2099_cfg));

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to