summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/frontends/lgdt3305.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2009-03-12 10:12:16 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 12:43:20 -0300
commit9f9cd8f18c7faabf6dc144c198f6ee30429d3da0 (patch)
tree6e35fb201aba52b7cb94f7c6d064f323dfb7ab30 /drivers/media/dvb/frontends/lgdt3305.c
parent7c026c35114d169d77c2543fdf4d5689a1c9a51d (diff)
V4L/DVB (10984): lgdt3305: avoid OOPS in error path of lgdt3305_attach
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>
Diffstat (limited to 'drivers/media/dvb/frontends/lgdt3305.c')
-rw-r--r--drivers/media/dvb/frontends/lgdt3305.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/lgdt3305.c b/drivers/media/dvb/frontends/lgdt3305.c
index 0ad820b08ca5..d92d0557a80b 100644
--- a/drivers/media/dvb/frontends/lgdt3305.c
+++ b/drivers/media/dvb/frontends/lgdt3305.c
@@ -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;
}