Introduce path_put()
[pandora-kernel.git] / fs / coda / pioctl.c
index 3b6a1b7..c21a1f5 100644 (file)
@@ -80,7 +80,7 @@ static int coda_pioctl(struct inode * inode, struct file * filp,
        
        /* return if it is not a Coda inode */
        if ( target_inode->i_sb != inode->i_sb ) {
-               path_release(&nd);
+               path_put(&nd.path);
                return  -EINVAL;
        }
 
@@ -89,7 +89,7 @@ static int coda_pioctl(struct inode * inode, struct file * filp,
 
        error = venus_pioctl(inode->i_sb, &(cnp->c_fid), cmd, &data);
 
-       path_release(&nd);
+       path_put(&nd.path);
         return error;
 }