summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2009-03-12 14:12:16 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 17:43:20 +0200
commit9f9cd8f18c7faabf6dc144c198f6ee30429d3da0 (patch)
tree6e35fb201aba52b7cb94f7c6d064f323dfb7ab30
parentV4L/DVB (10983): v4l2-common: add missing i2c_unregister_device. (diff)
downloadlinux-9f9cd8f18c7faabf6dc144c198f6ee30429d3da0.tar.xz
linux-9f9cd8f18c7faabf6dc144c198f6ee30429d3da0.zip
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>
-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;
}