]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/inotify_user.c
slub statistics: Fix check for DEACTIVATE_REMOTE_FREES
[linux-2.6-omap-h63xx.git] / fs / inotify_user.c
index e9c58652533aacddc9a81672421c1bde37a23f75..7b94a1e3c015468b30e6343156053fd5e409afca 100644 (file)
@@ -367,7 +367,7 @@ static int find_inode(const char __user *dirname, struct nameidata *nd,
        /* you can only watch an inode if you have read permissions on it */
        error = vfs_permission(nd, MAY_READ);
        if (error)
-               path_release(nd);
+               path_put(&nd->path);
        return error;
 }
 
@@ -676,7 +676,7 @@ asmlinkage long sys_inotify_add_watch(int fd, const char __user *path, u32 mask)
                ret = create_watch(dev, inode, mask);
        mutex_unlock(&dev->up_mutex);
 
-       path_release(&nd);
+       path_put(&nd.path);
 fput_and_out:
        fput_light(filp, fput_needed);
        return ret;