]> err.no Git - linux-2.6/blobdiff - fs/fcntl.c
[NET]: Kill direct includes of asm/checksum.h
[linux-2.6] / fs / fcntl.c
index e7c66a1bf8310e4728e9560cf4b16688042fc697..e4f26165f12a22567526a74d2f463aa6d6798547 100644 (file)
@@ -305,9 +305,11 @@ void f_delown(struct file *filp)
 pid_t f_getown(struct file *filp)
 {
        pid_t pid;
+       read_lock(&filp->f_owner.lock);
        pid = pid_nr(filp->f_owner.pid);
        if (filp->f_owner.pid_type == PIDTYPE_PGID)
                pid = -pid;
+       read_unlock(&filp->f_owner.lock);
        return pid;
 }