projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d1f9ae
)
efivarfs: Drop link count of the right inode
author
Lingzhu Xiang
<lxiang@redhat.com>
Sat, 5 Jan 2013 05:59:52 +0000
(13:59 +0800)
committer
Matt Fleming
<matt.fleming@intel.com>
Fri, 18 Jan 2013 09:43:43 +0000
(09:43 +0000)
efivarfs_unlink() should drop the file's link count, not the directory's.
Signed-off-by: Lingzhu Xiang <lxiang@redhat.com>
Cc: Jeremy Kerr <jeremy.kerr@canonical.com>
Tested-by: Lee, Chun-Yi <jlee@suse.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
drivers/firmware/efivars.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/firmware/efivars.c
b/drivers/firmware/efivars.c
index 7b1c37497c9a2683569f8a1ac9c959e8d5bc7636..fa9fa038de3f8161adc095cee2bc997f99da4068 100644
(file)
--- a/
drivers/firmware/efivars.c
+++ b/
drivers/firmware/efivars.c
@@
-994,7
+994,7
@@
static int efivarfs_unlink(struct inode *dir, struct dentry *dentry)
list_del(&var->list);
spin_unlock(&efivars->lock);
efivar_unregister(var);
- drop_nlink(d
ir
);
+ drop_nlink(d
entry->d_inode
);
dput(dentry);
return 0;
}