diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2001-01-10 17:17:53 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2001-01-10 17:17:53 +0000 |
commit | b2ad5f821b1381492d792ca10b1eb7a107b48f14 (patch) | |
tree | 954a648692e7da983db1d2470953705f6a729264 /fs/namei.c | |
parent | c9c06167e7933d93a6e396174c68abf242294abb (diff) |
Merge with Linux 2.4.0-prerelease. Big Makefile rewrite, test your
Makefiles.
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c index 37644f4a1..105833e4e 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -1611,7 +1611,7 @@ asmlinkage long sys_link(const char * oldname, const char * newname) goto out; error = -EXDEV; if (old_nd.mnt != nd.mnt) - goto out; + goto out_release; new_dentry = lookup_create(&nd, 0); error = PTR_ERR(new_dentry); if (!IS_ERR(new_dentry)) { @@ -1619,6 +1619,7 @@ asmlinkage long sys_link(const char * oldname, const char * newname) dput(new_dentry); } up(&nd.dentry->d_inode->i_sem); +out_release: path_release(&nd); out: path_release(&old_nd); |