summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/frontends/lgs8gl5.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/lgs8gl5.c')
-rw-r--r--drivers/media/dvb/frontends/lgs8gl5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/lgs8gl5.c b/drivers/media/dvb/frontends/lgs8gl5.c
index 855852fddf22..bb37ed289a05 100644
--- a/drivers/media/dvb/frontends/lgs8gl5.c
+++ b/drivers/media/dvb/frontends/lgs8gl5.c
@@ -387,7 +387,7 @@ lgs8gl5_attach(const struct lgs8gl5_config *config, struct i2c_adapter *i2c)
dprintk("%s\n", __func__);
/* Allocate memory for the internal state */
- state = kmalloc(sizeof(struct lgs8gl5_state), GFP_KERNEL);
+ state = kzalloc(sizeof(struct lgs8gl5_state), GFP_KERNEL);
if (state == NULL)
goto error;