]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/media/dvb/frontends/ves1820.c
V4L/DVB (12440): Use kzalloc for frontend states to have struct dvb_frontend properly
[linux-beck.git] / drivers / media / dvb / frontends / ves1820.c
index a184597f1d9be0002b8f567b245a849abef6553c..6e78e486551599bc47d76addb4e0af3e284175b6 100644 (file)
@@ -374,7 +374,7 @@ struct dvb_frontend* ves1820_attach(const struct ves1820_config* config,
        struct ves1820_state* state = NULL;
 
        /* allocate memory for the internal state */
-       state = kmalloc(sizeof(struct ves1820_state), GFP_KERNEL);
+       state = kzalloc(sizeof(struct ves1820_state), GFP_KERNEL);
        if (state == NULL)
                goto error;