]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/media/dvb/frontends/s5h1409.c
V4L/DVB (12440): Use kzalloc for frontend states to have struct dvb_frontend properly
[linux-beck.git] / drivers / media / dvb / frontends / s5h1409.c
index 3e08d985d6e50cf2f1fb36df3169274c74b22dcb..fb30115184270e38883ebee422c5f54582d58884 100644 (file)
@@ -796,7 +796,7 @@ struct dvb_frontend *s5h1409_attach(const struct s5h1409_config *config,
        u16 reg;
 
        /* allocate memory for the internal state */
-       state = kmalloc(sizeof(struct s5h1409_state), GFP_KERNEL);
+       state = kzalloc(sizeof(struct s5h1409_state), GFP_KERNEL);
        if (state == NULL)
                goto error;