From: Chuck Ebbert <76306.1226@compuserve.com>
To: Dave Jones <davej@redhat.com>
Cc: linux-kernel@vger.kernel.org, Greg KH <greg@kroah.com>
Subject: Re: 2.6.18.5 usb/sysfs bug.
Date: Sun, 17 Dec 2006 02:43:35 -0500 [thread overview]
Message-ID: <200612170245_MC3-1-D556-211B@compuserve.com> (raw)
In-Reply-To: <20061216141828.GA23368@redhat.com>
On Sat, 16 Dec 2006 09:18:28 -0500, Dave Jones wrote:
> > That's strange. Remove_files called sysfs_hash_and_remove()
> > with dir==0xfffffff3 (-13 decimal.)
>
> Hmm, That's -EACCESS. Something not checking a return code at a lower
> level maybe ?
In fs/sysfs/group.c:
void sysfs_remove_group(struct kobject * kobj,
const struct attribute_group * grp)
{
struct dentry * dir;
if (grp->name)
dir = lookup_one_len(grp->name, kobj->dentry,
strlen(grp->name));
else
dir = dget(kobj->dentry);
remove_files(dir,grp);
if (grp->name)
sysfs_remove_subdir(dir);
/* release the ref. taken in this routine */
dput(dir);
}
'dir' is being used without checking whether lookup_one_len()
succeeded.
> It's odd that something disconnects during boot, as nothing gets plugged.
Sometimes notebooks have USB devices built-in and they get treated
as if they were hotplugged.
--
MBTI: IXTP
next reply other threads:[~2006-12-17 7:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-17 7:43 Chuck Ebbert [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-12-16 5:47 2.6.18.5 usb/sysfs bug Chuck Ebbert
2006-12-16 14:18 ` Dave Jones
2006-12-15 17:50 Dave Jones
2006-12-15 17:53 ` Greg KH
2006-12-15 21:36 ` Dave Jones
2006-12-15 21:37 ` Dave Jones
2006-12-16 1:47 ` Pete Zaitcev
2006-12-16 3:05 ` Dave Jones
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=200612170245_MC3-1-D556-211B@compuserve.com \
--to=76306.1226@compuserve.com \
--cc=davej@redhat.com \
--cc=greg@kroah.com \
--cc=linux-kernel@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