diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-10-14 20:34:40 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-14 21:41:51 +0200 |
commit | 1ccc9147f6a063c42fef67acff34de18435a4a6b (patch) | |
tree | cd64f70d98174ff8a9079362af37ef47ba61746c /drivers/firewire | |
parent | mpc5200_wdt: __user annotations (diff) | |
download | linux-1ccc9147f6a063c42fef67acff34de18435a4a6b.tar.xz linux-1ccc9147f6a063c42fef67acff34de18435a4a6b.zip |
fw-cdev __user annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/firewire')
-rw-r--r-- | drivers/firewire/fw-cdev.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/firewire/fw-cdev.c b/drivers/firewire/fw-cdev.c index 75388641a7d3..06471302200f 100644 --- a/drivers/firewire/fw-cdev.c +++ b/drivers/firewire/fw-cdev.c @@ -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) { |