Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197203
b: refs/heads/master
c: 3b6b25b
h: refs/heads/master
i:
  197201: bd4330e
  197199: fb93e2f
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 11, 2010
1 parent 74c7b4c commit a540022
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 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: 2434358ac7ece40e6aa8cd705927c423caa718ec
refs/heads/master: 3b6b25b5ddf4485e89432a35a7d79d371ba6eba1
2 changes: 1 addition & 1 deletion trunk/drivers/staging/comedi/comedi.h
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@

struct comedi_rangeinfo {
unsigned int range_type;
void *range_ptr;
void __user *range_ptr;
};

struct comedi_krange {
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/staging/comedi/comedi_compat32.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@
*/

#define __NO_VERSION__
#include "comedi.h"
#include <linux/uaccess.h>

#include "comedi.h"
#include "comedi_compat32.h"

#ifdef CONFIG_COMPAT
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/comedi/drivers/comedi_bond.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ Configuration Options:
* options that are used with comedi_config.
*/

#include <linux/string.h>
#include <linux/slab.h>
#include "../comedi.h"
#include "../comedilib.h"
#include "../comedidev.h"
#include <linux/string.h>
#include <linux/slab.h>

/* The maxiumum number of channels per subdevice. */
#define MAX_CHANS 256
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/staging/comedi/internal.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/*
* various internal comedi functions
*/
int do_rangeinfo_ioctl(struct comedi_device *dev, struct comedi_rangeinfo *arg);
int do_rangeinfo_ioctl(struct comedi_device *dev,
struct comedi_rangeinfo __user *arg);
int insn_inval(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data);
int comedi_alloc_board_minor(struct device *hardware_device);
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/staging/comedi/range.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
*/

#include "comedidev.h"
#include <linux/uaccess.h>
#include "comedidev.h"
#include "internal.h"

const struct comedi_lrange range_bipolar10 = { 1, {BIP_RANGE(10)} };
EXPORT_SYMBOL(range_bipolar10);
Expand Down Expand Up @@ -50,7 +51,8 @@ EXPORT_SYMBOL(range_unknown);
writes:
n struct comedi_krange structures to rangeinfo->range_ptr
*/
int do_rangeinfo_ioctl(struct comedi_device *dev, struct comedi_rangeinfo *arg)
int do_rangeinfo_ioctl(struct comedi_device *dev,
struct comedi_rangeinfo __user *arg)
{
struct comedi_rangeinfo it;
int subd, chan;
Expand Down

0 comments on commit a540022

Please sign in to comment.