mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
afs: mntput called before dput
dput must be called before mntput here. Signed-off-by: Andreas Gruenbacher <agruen@suse.de> Acked-By: David Howells <dhowells@redhat.com> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
a2e0855182
commit
1a1a1a758b
1 changed files with 1 additions and 1 deletions
|
@ -235,8 +235,8 @@ static void *afs_mntpt_follow_link(struct dentry *dentry, struct nameidata *nd)
|
|||
err = do_add_mount(newmnt, nd, MNT_SHRINKABLE, &afs_vfsmounts);
|
||||
switch (err) {
|
||||
case 0:
|
||||
mntput(nd->mnt);
|
||||
dput(nd->dentry);
|
||||
mntput(nd->mnt);
|
||||
nd->mnt = newmnt;
|
||||
nd->dentry = dget(newmnt->mnt_root);
|
||||
schedule_delayed_work(&afs_mntpt_expiry_timer,
|
||||
|
|
Loading…
Reference in a new issue