diff options
Diffstat (limited to 'drivers/media/dvb/frontends/dib3000mc.c')
-rw-r--r-- | drivers/media/dvb/frontends/dib3000mc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/dib3000mc.c b/drivers/media/dvb/frontends/dib3000mc.c index c024fad17337..3b303dbb6156 100644 --- a/drivers/media/dvb/frontends/dib3000mc.c +++ b/drivers/media/dvb/frontends/dib3000mc.c | |||
@@ -832,10 +832,9 @@ struct dvb_frontend* dib3000mc_attach(const struct dib3000_config* config, | |||
832 | u16 devid; | 832 | u16 devid; |
833 | 833 | ||
834 | /* allocate memory for the internal state */ | 834 | /* allocate memory for the internal state */ |
835 | state = kmalloc(sizeof(struct dib3000_state), GFP_KERNEL); | 835 | state = kzalloc(sizeof(struct dib3000_state), GFP_KERNEL); |
836 | if (state == NULL) | 836 | if (state == NULL) |
837 | goto error; | 837 | goto error; |
838 | memset(state,0,sizeof(struct dib3000_state)); | ||
839 | 838 | ||
840 | /* setup the state */ | 839 | /* setup the state */ |
841 | state->i2c = i2c; | 840 | state->i2c = i2c; |