]> git.dujemihanovic.xyz Git - linux.git/commit
[media] serial_ir: ensure we're ready to receive interrupts
authorSean Young <sean@mess.org>
Sat, 25 Feb 2017 11:28:16 +0000 (08:28 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 3 Mar 2017 09:42:41 +0000 (06:42 -0300)
commit0265634eb9e04a16ae99941c320718c38eb865e0
tree3d7618d0db08a458d0ab968d8294241314ffae28
parent9eeb0ed0f30938f31a3d9135a88b9502192c18dd
[media] serial_ir: ensure we're ready to receive interrupts

When the interrupt requested with devm_request_irq(), serial_ir.rcdev
is still null so will cause null deference if the irq handler is called
early on.

Also ensure that timeout_timer is setup.

Link: http://lkml.kernel.org/r/CA+55aFxsh2uF8gi5sN_guY3Z+tiLv7LpJYKBw+y8vqLzp+TsnQ@mail.gmail.com
[mchehab@s-opensource.com: moved serial_ir_probe() back to its original place]

Cc: <stable@vger.kernel.org> # 4.10
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/serial_ir.c