Skip to content

Commit

Permalink
[media] rc: fix buffer overrun
Browse files Browse the repository at this point in the history
"[media] rc-core: move timeout and checks to lirc" introduced a buffer
overrun by passing the number of bytes, rather than the number of samples,
to the transmit function.

Signed-off-by: Sean Young <sean@mess.org>
Acked-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Sean Young authored and Mauro Carvalho Chehab committed Sep 15, 2012
1 parent b0c47e1 commit 586c61f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/rc/ir-lirc-codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ static ssize_t ir_lirc_transmit_ir(struct file *file, const char __user *buf,
goto out;
}

ret = dev->tx_ir(dev, txbuf, (u32)n);
ret = dev->tx_ir(dev, txbuf, count);
if (ret < 0)
goto out;

Expand Down

0 comments on commit 586c61f

Please sign in to comment.