diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2009-03-12 09:12:16 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:20 -0400 |
commit | 9f9cd8f18c7faabf6dc144c198f6ee30429d3da0 (patch) | |
tree | 6e35fb201aba52b7cb94f7c6d064f323dfb7ab30 /drivers | |
parent | 7c026c35114d169d77c2543fdf4d5689a1c9a51d (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')
-rw-r--r-- | drivers/media/dvb/frontends/lgdt3305.c | 1 |
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, | |||
1047 | return &state->frontend; | 1047 | return &state->frontend; |
1048 | fail: | 1048 | fail: |
1049 | lg_warn("unable to detect LGDT3305 hardware\n"); | 1049 | lg_warn("unable to detect LGDT3305 hardware\n"); |
1050 | state->frontend.demodulator_priv = NULL; | ||
1051 | kfree(state); | 1050 | kfree(state); |
1052 | return NULL; | 1051 | return NULL; |
1053 | } | 1052 | } |