Skip to content

Commit

Permalink
fw-cdev __user annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Oct 14, 2007
1 parent a39f9d0 commit 1ccc914
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 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 1ccc914

Please sign in to comment.