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:
850a496
)
hostfs ->follow_link() braino
author
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 18 Aug 2010 10:21:10 +0000
(06:21 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 18 Aug 2010 10:21:10 +0000
(06:21 -0400)
we want the assignment to err done inside the if () to be
visible after it, so (re)declaring err inside if () body
is wrong.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/hostfs/hostfs_kern.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/hostfs/hostfs_kern.c
b/fs/hostfs/hostfs_kern.c
index 77c4f6ee6c4074f4f536f2abb3236131632f3b22..f7dc9b5f9ef8c80560cb545d937aa9818a3b646f 100644
(file)
--- a/
fs/hostfs/hostfs_kern.c
+++ b/
fs/hostfs/hostfs_kern.c
@@
-876,7
+876,7
@@
static void *hostfs_follow_link(struct dentry *dentry, struct nameidata *nd)
char *path = dentry_name(dentry);
int err = -ENOMEM;
if (path) {
-
int
err = hostfs_do_readlink(path, link, PATH_MAX);
+ err = hostfs_do_readlink(path, link, PATH_MAX);
if (err == PATH_MAX)
err = -E2BIG;
__putname(path);