diff options
author | Michael Marineau <marineam@gentoo.org> | 2008-06-10 21:09:01 +0000 |
---|---|---|
committer | Michael Marineau <marineam@gentoo.org> | 2008-06-10 21:09:01 +0000 |
commit | adb557c4998d93912651b78ce24b7924a69f704e (patch) | |
tree | 9e95e5dbb8d16f5994a16e183d0cad8af8e73b41 /tags/2.6.18-11/30050_sysfs-fix-condition-check.patch | |
parent | Add backported e1000 driver from kernel-xen-2.6-2.6.21.7-3.fc8 (diff) | |
download | xen-adb557c4998d93912651b78ce24b7924a69f704e.tar.gz xen-adb557c4998d93912651b78ce24b7924a69f704e.tar.bz2 xen-adb557c4998d93912651b78ce24b7924a69f704e.zip |
Releasing 2.6.18-11
svn path=/patches/; revision=80
Diffstat (limited to 'tags/2.6.18-11/30050_sysfs-fix-condition-check.patch')
-rw-r--r-- | tags/2.6.18-11/30050_sysfs-fix-condition-check.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tags/2.6.18-11/30050_sysfs-fix-condition-check.patch b/tags/2.6.18-11/30050_sysfs-fix-condition-check.patch new file mode 100644 index 0000000..652065e --- /dev/null +++ b/tags/2.6.18-11/30050_sysfs-fix-condition-check.patch @@ -0,0 +1,29 @@ +From: Tejun Heo <htejun@gmail.com> +Date: Mon, 11 Jun 2007 05:03:27 +0000 (+0900) +Subject: sysfs: fix condition check in sysfs_drop_dentry() +X-Git-Tag: v2.6.22-rc5~46 +X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=6aa054aadfea613a437ad0b15d38eca2b963fc0a + +sysfs: fix condition check in sysfs_drop_dentry() + +The condition check doesn't make much sense as it basically always +succeeds. This causes NULL dereferencing on certain cases. It seems +that parentheses are put in the wrong place. Fix it. + +Signed-off-by: Tejun Heo <htejun@gmail.com> +Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> +--- + +Adjusted to apply to Debian's 2.6.18 by dann frazier <dannf@hp.com> + +--- linux-source-2.6.18+2.6.22.y/fs/sysfs/inode.c.orig 2007-11-07 15:40:19.000000000 -0700 ++++ linux-source-2.6.18+2.6.22.y/fs/sysfs/inode.c 2007-11-07 17:09:33.000000000 -0700 +@@ -236,7 +236,7 @@ void sysfs_drop_dentry(struct sysfs_dire + if (dentry) { + spin_lock(&dcache_lock); + spin_lock(&dentry->d_lock); +- if (!(d_unhashed(dentry) && dentry->d_inode)) { ++ if (!d_unhashed(dentry) && dentry->d_inode) { + dget_locked(dentry); + __d_drop(dentry); + spin_unlock(&dentry->d_lock); |