[kernel/f18] Patch to fix efivarfs underflow from Lingzhu Xiang (rhbz 888163)
Josh Boyer
jwboyer at fedoraproject.org
Mon Jan 7 16:25:48 UTC 2013
commit ac003e409f309dd7dee2518364fbb18d2983c7aa
Author: Josh Boyer <jwboyer at redhat.com>
Date: Mon Jan 7 11:23:18 2013 -0500
Patch to fix efivarfs underflow from Lingzhu Xiang (rhbz 888163)
efivarfs-3.7.patch | 24 ++++++++++++++++++++++++
kernel.spec | 3 +++
2 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/efivarfs-3.7.patch b/efivarfs-3.7.patch
index 3009107..6624064 100644
--- a/efivarfs-3.7.patch
+++ b/efivarfs-3.7.patch
@@ -1628,3 +1628,27 @@ index 58cec62..9ac9340 100644
--
1.7.12.1
+efivarfs_unlink() should drop the file's link count, not the directory's.
+
+Tested-by: Lee, Chun-Yi <jlee at suse.com>
+Signed-off-by: Lingzhu Xiang <lxiang at redhat.com>
+---
+ drivers/firmware/efivars.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c
+index d6b8d2f..60f5324 100644
+--- a/drivers/firmware/efivars.c
++++ b/drivers/firmware/efivars.c
+@@ -995,7 +995,7 @@ static int efivarfs_unlink(struct inode *dir, struct dentry *dentry)
+ list_del(&var->list);
+ spin_unlock(&efivars->lock);
+ efivar_unregister(var);
+- drop_nlink(dir);
++ drop_nlink(dentry->d_inode);
+ dput(dentry);
+ return 0;
+ }
+--
+1.7.7.6
+
diff --git a/kernel.spec b/kernel.spec
index fc24a6d..8ef0cb9 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -2398,6 +2398,9 @@ fi
# ||----w |
# || ||
%changelog
+* Mon Jan 07 2013 Josh Boyer <jwboyer at redhat.com>
+- Patch to fix efivarfs underflow from Lingzhu Xiang (rhbz 888163)
+
* Sun Jan 06 2013 Josh Boyer <jwboyer at redhat.com>
- Fix version.h include due to UAPI change in 3.7 (rhbz 892373)
More information about the scm-commits
mailing list