[svn-commits] tzafrir: linux/trunk r8370 - /linux/trunk/drivers/dahdi/dahdi-base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sun Mar 21 15:33:30 CDT 2010


Author: tzafrir
Date: Sun Mar 21 15:33:27 2010
New Revision: 8370

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8370
Log:
fix two cases of missing __user annotation (sparse)

Modified:
    linux/trunk/drivers/dahdi/dahdi-base.c

Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=8370&r1=8369&r2=8370
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Sun Mar 21 15:33:27 2010
@@ -3877,7 +3877,7 @@
 	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 @@
 					  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;




More information about the svn-commits mailing list