Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202109
b: refs/heads/master
c: 6efb870
h: refs/heads/master
i:
  202107: 312d736
v: v3
  • Loading branch information
Jarod Wilson authored and Mauro Carvalho Chehab committed Aug 2, 2010
1 parent 976accf commit 4d72269
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 5690085e7ba7f3081c6ab6db3a3b543444ad8a21
refs/heads/master: 6efb870a115ac223ab578bc76699ba8591250568
11 changes: 3 additions & 8 deletions trunk/drivers/media/IR/ir-lirc-codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,9 @@ static ssize_t ir_lirc_transmit_ir(struct file *file, const char *buf,
if (count > LIRCBUF_SIZE || count % 2 == 0)
return -EINVAL;

txbuf = kzalloc(sizeof(int) * LIRCBUF_SIZE, GFP_KERNEL);
if (!txbuf)
return -ENOMEM;

if (copy_from_user(txbuf, buf, n)) {
ret = -EFAULT;
goto out;
}
txbuf = memdup_user(buf, n);
if (IS_ERR(txbuf))
return PTR_ERR(txbuf);

ir_dev = lirc->ir_dev;
if (!ir_dev) {
Expand Down

0 comments on commit 4d72269

Please sign in to comment.