From: Andrew Morton <akpm@osdl.org>
To: "Randy.Dunlap" <rdunlap@xenotime.net>
Cc: greg@kroah.com, 76306.1226@compuserve.com, fork0@t-online.de,
linux-kernel@vger.kernel.org, mchehab@infradead.org,
shemminger@osdl.org, video4linux-list@redhat.com,
v4l-dvb-maintainer@linuxtv.org
Subject: Re: oops in bttv
Date: Wed, 12 Jul 2006 22:44:53 -0700 [thread overview]
Message-ID: <20060712224453.5faeea4a.akpm@osdl.org> (raw)
In-Reply-To: <20060712222407.d737129c.rdunlap@xenotime.net>
On Wed, 12 Jul 2006 22:24:07 -0700
"Randy.Dunlap" <rdunlap@xenotime.net> wrote:
> > > The class_dev is created like this, in video_register_device():
> > >
> > > memset(&vfd->class_dev, 0x00, sizeof(vfd->class_dev));
> > > if (vfd->dev)
> > > vfd->class_dev.dev = vfd->dev;
> > > vfd->class_dev.class = &video_class;
> > > vfd->class_dev.devt = MKDEV(VIDEO_MAJOR, vfd->minor);
> > > sprintf(vfd->class_dev.class_id, "%s%d", name_base, i - base);
> > > class_device_register(&vfd->class_dev);
> > > class_device_create_file(&vfd->class_dev,
> > > &class_device_attr_name);
> > >
> > > so it looks like class_device_register() is putting the 1 into the dentry?
> > > Culprit looks to be class_device_add() in that case.
> >
> > Perhaps we should check the return value of class_device_register() to
> > verify that nothing bad happened there? A dentry of 1 is very odd.
>
> Yes. We are in the process of adding such checks.
> Join the fun.
Chuck got about as far through this as I did. Yes, I'm suspecting an
earlier uncaught error of some form. The videodev changes since 2.6.17 are
small and look to be unrelated. I'd be suspecting preexisting videodev
bugs which have been exposed by sysfs/driver-model changes. But it's very
hard to tell.
Going through and adding 1000 missing check-error-then-recover instances is
the ideal approach, but I suspect that leaving callers as-is and blurting a
message from the driver core when some of these things fail might get us
what we need. But right now we have neither, and we see the result.
next prev parent reply other threads:[~2006-07-13 5:45 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-13 4:43 Chuck Ebbert
2006-07-13 5:05 ` Greg KH
2006-07-13 5:24 ` Randy.Dunlap
2006-07-13 5:44 ` Andrew Morton [this message]
2006-07-15 23:08 ` [PATCH] V4L: struct video_device corruption Robert Fitzsimons
2006-07-16 1:31 ` Mauro Carvalho Chehab
2006-07-18 0:25 ` [v4l-dvb-maintainer] " Trent Piepho
2006-07-19 11:54 ` Mauro Carvalho Chehab
2006-07-19 15:36 ` Michael Krufky
2006-07-20 21:57 ` Trent Piepho
2006-07-21 12:26 ` Mauro Carvalho Chehab
2006-07-21 20:06 ` Trent Piepho
2006-07-21 20:30 ` Mauro Carvalho Chehab
2006-07-21 22:55 ` Trent Piepho
2006-07-23 9:35 ` Mauro Carvalho Chehab
2006-07-24 2:16 ` Trent Piepho
2006-07-24 12:34 ` Mauro Carvalho Chehab
2006-07-24 22:06 ` Trent Piepho
2006-07-25 17:59 ` Mauro Carvalho Chehab
2006-07-25 3:08 ` Andrew Morton
2006-07-25 7:57 ` [v4l-dvb-maintainer] " Manu Abraham
2006-07-25 8:42 ` Trent Piepho
2006-07-25 9:06 ` Andrew Morton
2006-07-25 12:28 ` Mauro Carvalho Chehab
-- strict thread matches above, loose matches on Subject: below --
2006-07-11 20:49 oops in bttv Alex Riesen
2006-07-12 9:44 ` Frederik Deweerdt
2006-07-12 17:54 ` Alex Riesen
2006-07-15 11:29 ` Mauro Carvalho Chehab
2006-07-17 13:34 ` Alex Riesen
2006-07-19 17:09 ` Nish Aravamudan
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=20060712224453.5faeea4a.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=76306.1226@compuserve.com \
--cc=fork0@t-online.de \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@infradead.org \
--cc=rdunlap@xenotime.net \
--cc=shemminger@osdl.org \
--cc=v4l-dvb-maintainer@linuxtv.org \
--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
Powered by JetHome