aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends')
-rw-r--r--drivers/media/dvb/frontends/bcm3510.c3
-rw-r--r--drivers/media/dvb/frontends/dib3000mb.c3
-rw-r--r--drivers/media/dvb/frontends/dib3000mc.c3
-rw-r--r--drivers/media/dvb/frontends/lgdt330x.c3
-rw-r--r--drivers/media/dvb/frontends/mt352.c3
-rw-r--r--drivers/media/dvb/frontends/nxt200x.c3
6 files changed, 6 insertions, 12 deletions
diff --git a/drivers/media/dvb/frontends/bcm3510.c b/drivers/media/dvb/frontends/bcm3510.c
index 3b132bafd4de..caaee893ca76 100644
--- a/drivers/media/dvb/frontends/bcm3510.c
+++ b/drivers/media/dvb/frontends/bcm3510.c
@@ -782,10 +782,9 @@ struct dvb_frontend* bcm3510_attach(const struct bcm3510_config *config,
782 bcm3510_register_value v; 782 bcm3510_register_value v;
783 783
784 /* allocate memory for the internal state */ 784 /* allocate memory for the internal state */
785 state = kmalloc(sizeof(struct bcm3510_state), GFP_KERNEL); 785 state = kzalloc(sizeof(struct bcm3510_state), GFP_KERNEL);
786 if (state == NULL) 786 if (state == NULL)
787 goto error; 787 goto error;
788 memset(state,0,sizeof(struct bcm3510_state));
789 788
790 /* setup the state */ 789 /* setup the state */
791 790
diff --git a/drivers/media/dvb/frontends/dib3000mb.c b/drivers/media/dvb/frontends/dib3000mb.c
index 6b0553608610..ae589adb1c0a 100644
--- a/drivers/media/dvb/frontends/dib3000mb.c
+++ b/drivers/media/dvb/frontends/dib3000mb.c
@@ -700,10 +700,9 @@ struct dvb_frontend* dib3000mb_attach(const struct dib3000_config* config,
700 struct dib3000_state* state = NULL; 700 struct dib3000_state* state = NULL;
701 701
702 /* allocate memory for the internal state */ 702 /* allocate memory for the internal state */
703 state = kmalloc(sizeof(struct dib3000_state), GFP_KERNEL); 703 state = kzalloc(sizeof(struct dib3000_state), GFP_KERNEL);
704 if (state == NULL) 704 if (state == NULL)
705 goto error; 705 goto error;
706 memset(state,0,sizeof(struct dib3000_state));
707 706
708 /* setup the state */ 707 /* setup the state */
709 state->i2c = i2c; 708 state->i2c = i2c;
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;
diff --git a/drivers/media/dvb/frontends/lgdt330x.c b/drivers/media/dvb/frontends/lgdt330x.c
index 9d214643b87a..4691ac54bc1d 100644
--- a/drivers/media/dvb/frontends/lgdt330x.c
+++ b/drivers/media/dvb/frontends/lgdt330x.c
@@ -714,10 +714,9 @@ struct dvb_frontend* lgdt330x_attach(const struct lgdt330x_config* config,
714 u8 buf[1]; 714 u8 buf[1];
715 715
716 /* Allocate memory for the internal state */ 716 /* Allocate memory for the internal state */
717 state = (struct lgdt330x_state*) kmalloc(sizeof(struct lgdt330x_state), GFP_KERNEL); 717 state = kzalloc(sizeof(struct lgdt330x_state), GFP_KERNEL);
718 if (state == NULL) 718 if (state == NULL)
719 goto error; 719 goto error;
720 memset(state,0,sizeof(*state));
721 720
722 /* Setup the state */ 721 /* Setup the state */
723 state->config = config; 722 state->config = config;
diff --git a/drivers/media/dvb/frontends/mt352.c b/drivers/media/dvb/frontends/mt352.c
index f0c610f2c2df..aaaec909ddf8 100644
--- a/drivers/media/dvb/frontends/mt352.c
+++ b/drivers/media/dvb/frontends/mt352.c
@@ -535,9 +535,8 @@ struct dvb_frontend* mt352_attach(const struct mt352_config* config,
535 struct mt352_state* state = NULL; 535 struct mt352_state* state = NULL;
536 536
537 /* allocate memory for the internal state */ 537 /* allocate memory for the internal state */
538 state = kmalloc(sizeof(struct mt352_state), GFP_KERNEL); 538 state = kzalloc(sizeof(struct mt352_state), GFP_KERNEL);
539 if (state == NULL) goto error; 539 if (state == NULL) goto error;
540 memset(state,0,sizeof(*state));
541 540
542 /* setup the state */ 541 /* setup the state */
543 state->i2c = i2c; 542 state->i2c = i2c;
diff --git a/drivers/media/dvb/frontends/nxt200x.c b/drivers/media/dvb/frontends/nxt200x.c
index aeafef46e3eb..78d2b93d35b9 100644
--- a/drivers/media/dvb/frontends/nxt200x.c
+++ b/drivers/media/dvb/frontends/nxt200x.c
@@ -1110,10 +1110,9 @@ struct dvb_frontend* nxt200x_attach(const struct nxt200x_config* config,
1110 u8 buf [] = {0,0,0,0,0}; 1110 u8 buf [] = {0,0,0,0,0};
1111 1111
1112 /* allocate memory for the internal state */ 1112 /* allocate memory for the internal state */
1113 state = (struct nxt200x_state*) kmalloc(sizeof(struct nxt200x_state), GFP_KERNEL); 1113 state = kzalloc(sizeof(struct nxt200x_state), GFP_KERNEL);
1114 if (state == NULL) 1114 if (state == NULL)
1115 goto error; 1115 goto error;
1116 memset(state,0,sizeof(*state));
1117 1116
1118 /* setup the state */ 1117 /* setup the state */
1119 state->config = config; 1118 state->config = config;