From: Michael Krufky <mkrufky@linuxtv.org>
To: Sigmund Augdal <sigmund@snap.tv>
Cc: Hartmut Hackmann <hartmut.hackmann@t-online.de>, linux-dvb@linuxtv.org
Subject: Re: [linux-dvb] [PATCH] Re: Ooops in tda827x.c
Date: Wed, 04 Jun 2008 09:45:30 -0400 [thread overview]
Message-ID: <48469C7A.1070607@linuxtv.org> (raw)
In-Reply-To: <37219a840806040639q737327c7r9cab46cfdd88eaae@mail.gmail.com>
Michael Krufky wrote:
>> On Wed, 2008-06-04 at 01:22 +0200, Sigmund Augdal wrote:
>>> changeset 49ba58715fe0 (7393) introduces an ooops in tda827x.c in
>>> tda827xa_lna_gain. The initialization of the "msg" variable accesses
>>> priv->cfg before the NULL check causing an oops when it is in fact
>>> NULL.
>>>
>>> Best regards
>>>
>>> Sigmund Augdal
>
>
> 2008/6/4 Sigmund Augdal <sigmund@snap.tv>:
>> Attached patch fixes the problem.
>>
>> Best regards
>>
>> Sigmund Augdal
>>
>
>
> Sigmund,
>
> The driver was only able to get into this function without priv->cfg
> being defined, because m920x passes in NULL as cfg.
>
> In my opinion, this is flawed by design, and m920x should pass in an
> empty structure rather than a NULL pointer, but I understand why
> people might disagree with that.
>
> With that said, your patch looks good and I see that it fixes the
> issue. Please provide a sign-off so that your fix can be integrated
> and you will receive credit for your work.
>
> Use the form:
>
> Signed-off-by: Your Name <email@addre.ss>
>
Sigmund,
Looking at the C-1501 patch that you sent in, here is the cause of your OOPS.
if (dvb_attach(tda827x_attach, budget_ci->budget.dvb_frontend, 0x61,
+ &budget_ci->budget.i2c_adap, 0) == NULL)
You are passing "0" to the config structure of tda827x_attach. First off, "0" is an illegal value. This should be a pointer to a "struct tda827x_config"
...Please take a look at the tda827x_attach calls in saa7134-dvb.c for a better idea on what belongs there.
Regards,
Mike
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
next prev parent reply other threads:[~2008-06-04 13:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-03 23:22 [linux-dvb] Ooops in tda827x.c Sigmund Augdal
2008-06-04 13:06 ` [linux-dvb] [PATCH] " Sigmund Augdal
2008-06-04 13:39 ` Michael Krufky
2008-06-04 13:45 ` Michael Krufky [this message]
2008-06-04 13:54 ` Sigmund Augdal
2008-06-04 14:03 ` Michael Krufky
2008-06-05 9:13 ` Sigmund Augdal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48469C7A.1070607@linuxtv.org \
--to=mkrufky@linuxtv.org \
--cc=hartmut.hackmann@t-online.de \
--cc=linux-dvb@linuxtv.org \
--cc=sigmund@snap.tv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox