Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363272
b: refs/heads/master
c: 92ea915
h: refs/heads/master
v: v3
  • Loading branch information
Rebecca Schultz Zavin authored and Greg Kroah-Hartman committed Mar 4, 2013
1 parent 60e7405 commit b05240e
Show file tree
Hide file tree
Showing 2 changed files with 8 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: c5b86b7418f46220a623277718d6a909f520477b
refs/heads/master: 92ea915adb5565b522902a7b3f0a33ede16bb797
9 changes: 7 additions & 2 deletions trunk/drivers/staging/android/sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,8 +647,13 @@ static long sync_fence_ioctl_merge(struct sync_fence *fence, unsigned long arg)
struct sync_fence *fence2, *fence3;
struct sync_merge_data data;

if (copy_from_user(&data, (void __user *)arg, sizeof(data)))
return -EFAULT;
if (fd < 0)
return fd;

if (copy_from_user(&data, (void __user *)arg, sizeof(data))) {
err = -EFAULT;
goto err_put_fd;
}

fence2 = sync_fence_fdget(data.fd2);
if (fence2 == NULL) {
Expand Down

0 comments on commit b05240e

Please sign in to comment.