diff --git a/[refs] b/[refs] index 4ddf625bb6af..246c657083a3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9b1e3afd6d56937ced3914971621d0f053ea9178 +refs/heads/master: cc9acc885819696c0ed00f4f0f0cda0c7583f116 diff --git a/trunk/fs/autofs4/waitq.c b/trunk/fs/autofs4/waitq.c index 5a40d36e5a51..fa2348dcd671 100644 --- a/trunk/fs/autofs4/waitq.c +++ b/trunk/fs/autofs4/waitq.c @@ -191,6 +191,13 @@ int autofs4_wait(struct autofs_sb_info *sbi, struct dentry *dentry, } if ( !wq ) { + /* Can't wait for an expire if there's no mount */ + if (notify == NFY_NONE && !d_mountpoint(dentry)) { + kfree(name); + up(&sbi->wq_sem); + return -ENOENT; + } + /* Create a new wait queue */ wq = kmalloc(sizeof(struct autofs_wait_queue),GFP_KERNEL); if ( !wq ) {