[svn-commits] sruffell: linux/trunk r9380 - /linux/trunk/drivers/dahdi/dahdi-base.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Sep 20 15:34:23 CDT 2010
Author: sruffell
Date: Mon Sep 20 15:34:19 2010
New Revision: 9380
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9380
Log:
dahdi: 'user_data' is extraneous in dahdi_ctl_ioctl.
Review: https://reviewboard.asterisk.org/r/905/
Signed-off-by: Shaun Ruffell <sruffell at digium.com>
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=9380&r1=9379&r2=9380
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Mon Sep 20 15:34:19 2010
@@ -4463,7 +4463,6 @@
int res = 0;
int x,y;
unsigned long flags;
- void __user * const user_data = (void __user *)data;
int rv;
struct dahdi_span *s;
struct dahdi_chan *chan;
@@ -4505,7 +4504,7 @@
struct dahdi_lineconfig lc;
struct dahdi_span *s;
- if (copy_from_user(&lc, user_data, sizeof(lc)))
+ if (copy_from_user(&lc, (void __user *)data, sizeof(lc)))
return -EFAULT;
s = find_span(lc.span);
if (!s)
@@ -4577,7 +4576,7 @@
struct dahdi_attach_echocan ae;
const struct dahdi_echocan_factory *new = NULL, *old;
- if (copy_from_user(&ae, user_data, sizeof(ae)))
+ if (copy_from_user(&ae, (void __user *)data, sizeof(ae)))
return -EFAULT;
VALID_CHANNEL(ae.chan);
@@ -4607,7 +4606,7 @@
{
struct dahdi_sfconfig sf;
- if (copy_from_user(&sf, user_data, sizeof(sf)))
+ if (copy_from_user(&sf, (void __user *)data, sizeof(sf)))
return -EFAULT;
VALID_CHANNEL(sf.chan);
if (chans[sf.chan]->sig != DAHDI_SIG_SF) return -EINVAL;
@@ -4647,7 +4646,7 @@
{
struct dahdi_dialparams tdp;
- if (copy_from_user(&tdp, user_data, sizeof(tdp)))
+ if (copy_from_user(&tdp, (void __user *)data, sizeof(tdp)))
return -EFAULT;
if ((tdp.dtmf_tonelen >= 10) && (tdp.dtmf_tonelen <= 4000)) {
@@ -4698,7 +4697,7 @@
struct dahdi_dialparams tdp;
tdp = global_dialparams;
- if (copy_to_user(user_data, &tdp, sizeof(tdp)))
+ if (copy_to_user((void __user *)data, &tdp, sizeof(tdp)))
return -EFAULT;
break;
}
@@ -4726,7 +4725,7 @@
}
}
read_unlock(&ecfactory_list_lock);
- if (copy_to_user(user_data, &vi, sizeof(vi)))
+ if (copy_to_user((void __user *)data, &vi, sizeof(vi)))
return -EFAULT;
break;
}
@@ -4734,7 +4733,7 @@
{
struct dahdi_maintinfo maint;
/* get struct from user */
- if (copy_from_user(&maint, user_data, sizeof(maint)))
+ if (copy_from_user(&maint, (void __user *)data, sizeof(maint)))
return -EFAULT;
s = find_span(maint.spanno);
if (!s)
More information about the svn-commits
mailing list