]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/autofs4/root.c
usb host: fix platform driver hotplug/coldplug
[linux-2.6-omap-h63xx.git] / fs / autofs4 / root.c
index 2bbcc8151dc343eae48914aa95748fef401238f7..a54a946a50ae55bc44f04142565834527f07d524 100644 (file)
@@ -368,7 +368,8 @@ static void *autofs4_follow_link(struct dentry *dentry, struct nameidata *nd)
                 * so we don't need to follow the mount.
                 */
                if (d_mountpoint(dentry)) {
-                       if (!autofs4_follow_mount(&nd->mnt, &nd->dentry)) {
+                       if (!autofs4_follow_mount(&nd->path.mnt,
+                                                 &nd->path.dentry)) {
                                status = -ENOENT;
                                goto out_error;
                        }
@@ -382,7 +383,7 @@ done:
        return NULL;
 
 out_error:
-       path_release(nd);
+       path_put(&nd->path);
        return ERR_PTR(status);
 }