diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-07-06 11:21:49 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-06 16:23:59 -0700 |
commit | a7f3943cd055f73e82e1b57468286f3d7cf9fb27 (patch) | |
tree | 8d4c9b2bd4708a0fe33b5165b14b7f99f543017d /drivers/staging/vme | |
parent | e97e6c4f9a5d23a1bd7141b6fa73e2f96282c03d (diff) | |
download | lwn-a7f3943cd055f73e82e1b57468286f3d7cf9fb27.tar.gz lwn-a7f3943cd055f73e82e1b57468286f3d7cf9fb27.zip |
Staging: vme: silence a Sparse warning
Sparse complains that "arg" is not a __user pointer. The "argp" and
"arg" variables are equivalent but argp is declared as a __user pointer.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-By: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vme')
-rw-r--r-- | drivers/staging/vme/devices/vme_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index e24a6f95db12..0c2479e41938 100644 --- a/drivers/staging/vme/devices/vme_user.c +++ b/drivers/staging/vme/devices/vme_user.c @@ -474,7 +474,7 @@ static int vme_user_ioctl(struct inode *inode, struct file *file, case CONTROL_MINOR: switch (cmd) { case VME_IRQ_GEN: - copied = copy_from_user(&irq_req, (char *)arg, + copied = copy_from_user(&irq_req, argp, sizeof(struct vme_irq_id)); if (copied != 0) { printk(KERN_WARNING "Partial copy from userspace\n"); |