Skip to content

Commit

Permalink
V4L/DVB (10984): lgdt3305: avoid OOPS in error path of lgdt3305_attach
Browse files Browse the repository at this point in the history
Setting state->frontend.demodulator_priv to NULL in the event of
a kzalloc error will result in an OOPS.  Just remove that line.

Thanks to Matthias Schwarzott for pointing this out.

Cc: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 7c026c3 commit 9f9cd8f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/media/dvb/frontends/lgdt3305.c
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,6 @@ struct dvb_frontend *lgdt3305_attach(const struct lgdt3305_config *config,
return &state->frontend;
fail:
lg_warn("unable to detect LGDT3305 hardware\n");
state->frontend.demodulator_priv = NULL;
kfree(state);
return NULL;
}
Expand Down

0 comments on commit 9f9cd8f

Please sign in to comment.