diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/frontends/lgdt3304.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/s921_module.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/lgdt3304.c b/drivers/media/dvb/frontends/lgdt3304.c index eb72a9866c93..e334b5d4e578 100644 --- a/drivers/media/dvb/frontends/lgdt3304.c +++ b/drivers/media/dvb/frontends/lgdt3304.c | |||
@@ -363,6 +363,8 @@ struct dvb_frontend* lgdt3304_attach(const struct lgdt3304_config *config, | |||
363 | 363 | ||
364 | struct lgdt3304_state *state; | 364 | struct lgdt3304_state *state; |
365 | state = kzalloc(sizeof(struct lgdt3304_state), GFP_KERNEL); | 365 | state = kzalloc(sizeof(struct lgdt3304_state), GFP_KERNEL); |
366 | if (state == NULL) | ||
367 | return NULL; | ||
366 | state->addr = config->i2c_address; | 368 | state->addr = config->i2c_address; |
367 | state->i2c = i2c; | 369 | state->i2c = i2c; |
368 | 370 | ||
diff --git a/drivers/media/dvb/frontends/s921_module.c b/drivers/media/dvb/frontends/s921_module.c index 3f5a0e1dfdf5..3156b64cfc96 100644 --- a/drivers/media/dvb/frontends/s921_module.c +++ b/drivers/media/dvb/frontends/s921_module.c | |||
@@ -169,6 +169,8 @@ struct dvb_frontend* s921_attach(const struct s921_config *config, | |||
169 | 169 | ||
170 | struct s921_state *state; | 170 | struct s921_state *state; |
171 | state = kzalloc(sizeof(struct s921_state), GFP_KERNEL); | 171 | state = kzalloc(sizeof(struct s921_state), GFP_KERNEL); |
172 | if (state == NULL) | ||
173 | return NULL; | ||
172 | 174 | ||
173 | state->addr = config->i2c_address; | 175 | state->addr = config->i2c_address; |
174 | state->i2c = i2c; | 176 | state->i2c = i2c; |