Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271943
b: refs/heads/master
c: 06bd801
h: refs/heads/master
i:
  271941: c2b4b63
  271939: 1a08513
  271935: ee30139
v: v3
  • Loading branch information
Dan Carpenter authored and Mauro Carvalho Chehab committed Oct 11, 2011
1 parent 80e4121 commit 2d77ac0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: e30528854797f057aa6ffb6dc9f890e923c467fd
refs/heads/master: 06bd801c23939952bc6e1cf65f0e8c0fff09d2d7
9 changes: 5 additions & 4 deletions trunk/drivers/media/rc/ir-lirc-codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static int ir_lirc_decode(struct rc_dev *dev, struct ir_raw_event ev)
return 0;
}

static ssize_t ir_lirc_transmit_ir(struct file *file, const char *buf,
static ssize_t ir_lirc_transmit_ir(struct file *file, const char __user *buf,
size_t n, loff_t *ppos)
{
struct lirc_codec *lirc;
Expand Down Expand Up @@ -140,10 +140,11 @@ static ssize_t ir_lirc_transmit_ir(struct file *file, const char *buf,
}

static long ir_lirc_ioctl(struct file *filep, unsigned int cmd,
unsigned long __user arg)
unsigned long arg)
{
struct lirc_codec *lirc;
struct rc_dev *dev;
u32 __user *argp = (u32 __user *)(arg);
int ret = 0;
__u32 val = 0, tmp;

Expand All @@ -156,7 +157,7 @@ static long ir_lirc_ioctl(struct file *filep, unsigned int cmd,
return -EFAULT;

if (_IOC_DIR(cmd) & _IOC_WRITE) {
ret = get_user(val, (__u32 *)arg);
ret = get_user(val, argp);
if (ret)
return ret;
}
Expand Down Expand Up @@ -265,7 +266,7 @@ static long ir_lirc_ioctl(struct file *filep, unsigned int cmd,
}

if (_IOC_DIR(cmd) & _IOC_READ)
ret = put_user(val, (__u32 *)arg);
ret = put_user(val, argp);

return ret;
}
Expand Down

0 comments on commit 2d77ac0

Please sign in to comment.