]> err.no Git - linux-2.6/blobdiff - fs/afs/mntpt.c
[TCP]: secure_tcp_sequence_number() should not use a too fast clock
[linux-2.6] / fs / afs / mntpt.c
index a3684dcc76e7985a4a2b53ea32c81cd12f61cd86..6f8c96fb29eb04d797d744991f7570b89a5f9f66 100644 (file)
@@ -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,