Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68684
b: refs/heads/master
c: 1ccc914
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Oct 14, 2007
1 parent 551bd2f commit 7485c79
Show file tree
Hide file tree
Showing 2 changed files with 4 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: a39f9d028a48c9dfbc98e8c1504bf96578c65164
refs/heads/master: 1ccc9147f6a063c42fef67acff34de18435a4a6b
5 changes: 3 additions & 2 deletions trunk/drivers/firewire/fw-cdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,10 +722,11 @@ static int ioctl_queue_iso(struct client *client, void *buffer)
buffer_end = 0;
}

if (!access_ok(VERIFY_READ, request->packets, request->size))
p = (struct fw_cdev_iso_packet __user *)u64_to_uptr(request->packets);

if (!access_ok(VERIFY_READ, p, request->size))
return -EFAULT;

p = (struct fw_cdev_iso_packet __user *)u64_to_uptr(request->packets);
end = (void __user *)p + request->size;
count = 0;
while (p < end) {
Expand Down

0 comments on commit 7485c79

Please sign in to comment.