From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: Possible udev bug and some questions
Date: Thu, 25 Dec 2003 00:30:10 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-107231227212566@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-107230596809166@msgid-missing>
On Wed, Dec 24, 2003 at 04:19:14PM -0800, Greg KH wrote:
> On Thu, Dec 25, 2003 at 12:25:22AM +0200, Martin Schlemmer wrote:
> > Hi
> >
> > I know its not good form to post so many issues in one, but I
> > am currently on dialup, and not for more than a few hours. Also
> > please CC me, as I am not on this list.
> >
> > 1) if you look at the following code in namedev.c (in
> > function do_callout()):
> >
> > --
> > if (sysfs_device) {
> > dbg("dev->bus='%s' sysfs_device->bus='%s'",
> > dev->bus, sysfs_device->bus);
> > if (strcasecmp(dev->bus, sysfs_device->bus) !> > 0)
> > continue;
> >
> > }
> > --
> >
> > there is a slight problem - if sysfs_device = NULL, then the
> > 'strcasecmp(dev->bus, sysfs_device->bus) != 0' test will never
> > be evaluated, and result in the callout to run for all non-phisical (?)
> > devices.
>
> Ah, good catch. I've put a test in the udev-test.pl script to catch
> this bug, and added the following patch:
I made the same patch for the LABEL rule, as that also could trigger
wrong acceptances.
thanks again.
greg k-h
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2003-12-25 0:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-24 22:25 Possible udev bug and some questions Martin Schlemmer
2003-12-25 0:19 ` Greg KH
2003-12-25 0:30 ` Greg KH [this message]
2003-12-25 10:06 ` Kay Sievers
2003-12-25 18:59 ` Martin Schlemmer
2003-12-25 19:32 ` Kay Sievers
2003-12-25 20:00 ` Kay Sievers
2003-12-25 21:04 ` Kay Sievers
2003-12-25 21:26 ` Kay Sievers
2003-12-25 22:58 ` Kay Sievers
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=marc-linux-hotplug-107231227212566@msgid-missing \
--to=greg@kroah.com \
--cc=linux-hotplug@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).