]> git.baikalelectronics.ru Git - kernel.git/commit
media: mceusb: set timeout to at least timeout provided
authorSean Young <sean@mess.org>
Fri, 2 Sep 2022 10:32:21 +0000 (12:32 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 05:50:42 +0000 (07:50 +0200)
commite2e064151e41519f0a9a777268d2377ef7a7c817
treef7bcb116eaecd0587a0312997fb0977769697ec9
parent20431880c9f443296172d7e419d6b0414f837384
media: mceusb: set timeout to at least timeout provided

By rounding down, the actual timeout can be lower than requested. As a
result, long spaces just below the requested timeout can be incorrectly
reported as timeout and truncated.

Fixes: 6286e473b1c1 ("media: rc: mceusb: allow the timeout to be configurable")
Cc: stable@vger.kernel.org
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/rc/mceusb.c