]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/locks.c
[PATCH] file: modify struct fown_struct to use a struct pid
[mirror_ubuntu-artful-kernel.git] / fs / locks.c
index 21dfadfca2bc1402613407215a807ee3bda44173..e0b6a80649a01ff79c26206c039ece3d4faebd0c 100644 (file)
@@ -1514,7 +1514,7 @@ int fcntl_setlease(unsigned int fd, struct file *filp, long arg)
                goto out_unlock;
        }
 
-       error = f_setown(filp, current->pid, 0);
+       error = __f_setown(filp, task_pid(current), PIDTYPE_PID, 0);
 out_unlock:
        unlock_kernel();
        return error;