Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175067
b: refs/heads/master
c: f366243
h: refs/heads/master
i:
  175065: 1eb1c5b
  175063: 0eae0a2
v: v3
  • Loading branch information
Shane Warden authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 4d31f2b commit f723713
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 63a4eca57cacd9043da71287590525261563a1f2
refs/heads/master: f36624369ff2922f3aa8b5cef0376bcec759ebef
22 changes: 11 additions & 11 deletions trunk/drivers/staging/comedi/comedi_compat32.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define __NO_VERSION__
#include "comedi.h"
#include <linux/smp_lock.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>

#include "comedi_compat32.h"

Expand Down Expand Up @@ -186,8 +186,8 @@ static int compat_rangeinfo(struct file *file, unsigned long arg)
}

/* Copy 32-bit cmd structure to native cmd structure. */
static int get_compat_cmd(struct comedi_cmd __user * cmd,
struct comedi32_cmd_struct __user * cmd32)
static int get_compat_cmd(struct comedi_cmd __user *cmd,
struct comedi32_cmd_struct __user *cmd32)
{
int err;
union {
Expand Down Expand Up @@ -237,8 +237,8 @@ static int get_compat_cmd(struct comedi_cmd __user * cmd,
}

/* Copy native cmd structure to 32-bit cmd structure. */
static int put_compat_cmd(struct comedi32_cmd_struct __user * cmd32,
struct comedi_cmd __user * cmd)
static int put_compat_cmd(struct comedi32_cmd_struct __user *cmd32,
struct comedi_cmd __user *cmd)
{
int err;
unsigned int temp;
Expand Down Expand Up @@ -328,8 +328,8 @@ static int compat_cmdtest(struct file *file, unsigned long arg)
}

/* Copy 32-bit insn structure to native insn structure. */
static int get_compat_insn(struct comedi_insn __user * insn,
struct comedi32_insn_struct __user * insn32)
static int get_compat_insn(struct comedi_insn __user *insn,
struct comedi32_insn_struct __user *insn32)
{
int err;
union {
Expand Down Expand Up @@ -372,9 +372,9 @@ static int compat_insnlist(struct file *file, unsigned long arg)
insnlist32 = compat_ptr(arg);

/* Get 32-bit insnlist structure. */
if (!access_ok(VERIFY_READ, insnlist32, sizeof(*insnlist32))) {
if (!access_ok(VERIFY_READ, insnlist32, sizeof(*insnlist32)))
return -EFAULT;
}

err = 0;
err |= __get_user(n_insns, &insnlist32->n_insns);
err |= __get_user(uptr, &insnlist32->insns);
Expand All @@ -387,9 +387,9 @@ static int compat_insnlist(struct file *file, unsigned long arg)
insn[n_insns]));

/* Set native insnlist structure. */
if (!access_ok(VERIFY_WRITE, &s->insnlist, sizeof(s->insnlist))) {
if (!access_ok(VERIFY_WRITE, &s->insnlist, sizeof(s->insnlist)))
return -EFAULT;
}

err |= __put_user(n_insns, &s->insnlist.n_insns);
err |= __put_user(&s->insn[0], &s->insnlist.insns);
if (err)
Expand Down

0 comments on commit f723713

Please sign in to comment.