Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200133
b: refs/heads/master
c: 5b54470
h: refs/heads/master
i:
  200131: 8650820
v: v3
  • Loading branch information
Dan Carpenter authored and Al Viro committed Jun 4, 2010
1 parent fe1a2e8 commit a259e10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7d683a09990ff095a91b6e724ecee0ff8733274a
refs/heads/master: 5b54470daded19d83ea2bbf5f6bc12662942cd63
7 changes: 5 additions & 2 deletions trunk/fs/fcntl.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ static int f_setown_ex(struct file *filp, unsigned long arg)

ret = copy_from_user(&owner, owner_p, sizeof(owner));
if (ret)
return ret;
return -EFAULT;

switch (owner.type) {
case F_OWNER_TID:
Expand Down Expand Up @@ -332,8 +332,11 @@ static int f_getown_ex(struct file *filp, unsigned long arg)
}
read_unlock(&filp->f_owner.lock);

if (!ret)
if (!ret) {
ret = copy_to_user(owner_p, &owner, sizeof(owner));
if (ret)
ret = -EFAULT;
}
return ret;
}

Expand Down

0 comments on commit a259e10

Please sign in to comment.