Skip to content
Commit cac61a1a authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

media: mantis: prevent staying forever in a loop at IRQ



As warned by smatch:
	drivers/media/pci/mantis/mantis_uart.c:105 mantis_uart_work() warn: this loop depends on readl() succeeding

If something goes wrong at readl(), the logic will stay there
inside an IRQ code forever. This is not the nicest thing to
do :-)

So, add a timeout there, preventing staying inside the IRQ
for more than 10ms.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent ee2d243d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment