V4L/DVB (9389): Use kzalloc instead of kmalloc
authorMarko Schluessler <marco@lordzodiac.de>
Fri, 21 Sep 2007 21:13:30 +0000 (18:13 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Dec 2008 19:53:15 +0000 (17:53 -0200)
Signed-off-by: Marko Schluessler <marco@lordzodiac.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stb6100.c

index eeed7b41acb318c44d84a166525133ac8e51a71d..234ca7344a160d81f7ce9610090437b8d2edaa89 100644 (file)
@@ -527,7 +527,7 @@ struct dvb_frontend *stb6100_attach(struct dvb_frontend *fe,
 {
        struct stb6100_state *state = NULL;
 
-       state = kmalloc(sizeof (struct stb6100_state), GFP_KERNEL);
+       state = kzalloc(sizeof (struct stb6100_state), GFP_KERNEL);
        if (state == NULL)
                goto error;