diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2009-03-12 09:12:16 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2009-03-12 09:12:16 -0400 |
commit | 6716df924ee6f2791b1939b04028f01dd37a9e9e (patch) | |
tree | 43d61bbfc25c9ab725c6b489d56bb325dcff51b2 /linux/drivers/media/dvb/frontends/lgdt3305.c | |
parent | d32bcc1401cca5f2ea369ce78ab70947034b5c8f (diff) | |
download | mediapointer-dvb-s2-6716df924ee6f2791b1939b04028f01dd37a9e9e.tar.gz mediapointer-dvb-s2-6716df924ee6f2791b1939b04028f01dd37a9e9e.tar.bz2 |
lgdt3305: avoid OOPS in error path of lgdt3305_attach
From: Michael Krufky <mkrufky@linuxtv.org>
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.
Priority: normal
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Cc: Matthias Schwarzott <zzam@gentoo.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/lgdt3305.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/lgdt3305.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/lgdt3305.c b/linux/drivers/media/dvb/frontends/lgdt3305.c index 8d62d1257..f0c0c8199 100644 --- a/linux/drivers/media/dvb/frontends/lgdt3305.c +++ b/linux/drivers/media/dvb/frontends/lgdt3305.c @@ -1075,7 +1075,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; } |