projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: riptide - proper handling of pci_register_driver for joystick
[linux-2.6-block.git]
/
fs
/
nfs
/
namespace.c
diff --git
a/fs/nfs/namespace.c
b/fs/nfs/namespace.c
index f01caec844634329b1204cb3d331724c18d1881f..40c76678289168ed0cbbe3e653f58485a56003eb 100644
(file)
--- a/
fs/nfs/namespace.c
+++ b/
fs/nfs/namespace.c
@@
-65,6
+65,11
@@
char *nfs_path(const char *base,
dentry = dentry->d_parent;
}
spin_unlock(&dcache_lock);
+ if (*end != '/') {
+ if (--buflen < 0)
+ goto Elong;
+ *--end = '/';
+ }
namelen = strlen(base);
/* Strip off excess slashes in base string */
while (namelen > 0 && base[namelen - 1] == '/')