summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/s921_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/s921_module.c')
-rw-r--r--drivers/media/dvb/frontends/s921_module.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/s921_module.c b/drivers/media/dvb/frontends/s921_module.c
index 3f5a0e1dfdf..3156b64cfc9 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,
struct s921_state *state;
state = kzalloc(sizeof(struct s921_state), GFP_KERNEL);
+ if (state == NULL)
+ return NULL;
state->addr = config->i2c_address;
state->i2c = i2c;