From: "Parag Warudkar" <parag.warudkar@gmail.com>
To: "Rabin Vincent" <rabin@rab.in>
Cc: "Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
Serge.A.S@tochka.ru, mxhaard@users.sourceforge.net,
moinejf@free.fr, "Mauro Carvalho Chehab" <mchehab@infradead.org>,
video4linux-list@redhat.com
Subject: Re: gspca_zc3xx oops - 2.6.27-rc1
Date: Sun, 3 Aug 2008 03:52:24 -0400 [thread overview]
Message-ID: <82e4877d0808030052g4c345811u642667b2a8d87a1d@mail.gmail.com> (raw)
In-Reply-To: <20080803073705.GA2754@debian>
On Sun, Aug 3, 2008 at 3:37 AM, Rabin Vincent <rabin@rab.in> wrote:
> 2b: 0f b6 37 movzbl (%edi),%esi <---- offender
> 2e: 0f af f0 imul %eax,%esi
> 31: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
> 37: 0f b6 83 00 dc 15 f9 movzbl -0x6ea2400(%ebx),%eax
>
> %edi is Tgamma, and it is NULL because sd->gamma was 0, and the zeroth element
> of gamma_tb was loaded.
Yep - I arrived at the same conclusion and sent a patch few minutes
before I saw your mail.
I am clueless about V4L and gspca workings but I chose a different
approach to fix this -
http://marc.info/?l=linux-kernel&m=121774817612391&w=2 .
>
> Now sd->gamma shouldn't be zero because in sd_ctrls, the minimum value for it
> is set to 1. This range should be checked by vidioc_s_ctrl in gspca.c, and we
> have this there:
>
> if (ctrl->value < ctrls->qctrl.minimum
> && ctrl->value > ctrls->qctrl.maximum)
> return -ERANGE;
>
Sounds more appropriate but I am not sure how vidioc_s_ctrl leads to
the call trace in the OOPS - at least it doesn't show up there.
Thanks
Parag
next prev parent reply other threads:[~2008-08-03 7:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-02 16:22 Parag Warudkar
2008-08-03 7:37 ` Rabin Vincent
2008-08-03 7:52 ` Parag Warudkar [this message]
2008-08-03 10:26 ` Rabin Vincent
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=82e4877d0808030052g4c345811u642667b2a8d87a1d@mail.gmail.com \
--to=parag.warudkar@gmail.com \
--cc=Serge.A.S@tochka.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@infradead.org \
--cc=moinejf@free.fr \
--cc=mxhaard@users.sourceforge.net \
--cc=rabin@rab.in \
--cc=video4linux-list@redhat.com \
/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
all inboxes | Powered by JetHome®