]> asedeno.scripts.mit.edu Git - linux.git/commit
media: rc: get start time just before calling driver tx
authorSean Young <sean@mess.org>
Mon, 12 Feb 2018 14:00:28 +0000 (09:00 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 14 Feb 2018 19:17:21 +0000 (14:17 -0500)
commit29422737017b866d4a51014cc7522fa3a99e8852
treea9d752840ca4b4fc092b82386d9aac3454ce7d86
parentc2837ad09018807437f1249d30915e70dd6b6bbe
media: rc: get start time just before calling driver tx

The current code gets the start time before copying the IR from
userspace (could cause page faults) and encoding IR. This means
that the gap calculation could be off.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/lirc_dev.c