]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/media/dvb/frontends/si21xx.c
V4L/DVB (12440): Use kzalloc for frontend states to have struct dvb_frontend properly
[linux-beck.git] / drivers / media / dvb / frontends / si21xx.c
index 0bd16af8a6cd0723ab127f5a8de3c8d99e81e581..9552a22ccffb23b215897979fd51f45a2d8dc07a 100644 (file)
@@ -928,7 +928,7 @@ struct dvb_frontend *si21xx_attach(const struct si21xx_config *config,
        dprintk("%s\n", __func__);
 
        /* allocate memory for the internal state */
-       state = kmalloc(sizeof(struct si21xx_state), GFP_KERNEL);
+       state = kzalloc(sizeof(struct si21xx_state), GFP_KERNEL);
        if (state == NULL)
                goto error;