From 7991bff1f358e06b188ee6aa3622d16ddecaa510 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sun, 21 Mar 2010 20:33:27 +0000 Subject: fix two cases of missing __user annotation (sparse) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8370 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/dahdi-base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index d0aa29c..6a34d04 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -3877,7 +3877,7 @@ static int dahdi_common_ioctl(struct file *file, unsigned int cmd, unsigned long case DAHDI_SPANSTAT_V1: size_to_copy = sizeof(struct dahdi_spaninfo_v1); if (copy_from_user(&stack.spaninfo_v1, - (struct dahdi_spaninfo_v1 *) data, + (__user struct dahdi_spaninfo_v1 *) data, size_to_copy)) return -EFAULT; i = stack.spaninfo_v1.spanno; /* get specified span number */ @@ -3939,7 +3939,7 @@ static int dahdi_common_ioctl(struct file *file, unsigned int cmd, unsigned long spans[i]->spantype, sizeof(stack.spaninfo_v1.spantype)); - if (copy_to_user((struct dahdi_spaninfo_v1 *) data, + if (copy_to_user((__user struct dahdi_spaninfo_v1 *) data, &stack.spaninfo_v1, size_to_copy)) return -EFAULT; break; -- cgit v1.2.3