WSL2-Linux-Kernel/drivers/media/cec
Hans Verkuil 490d84f6d7 media: cec: forgot to cancel delayed work
If the wait for completion was interrupted, then make sure to cancel
any delayed work.

This can only happen if a transmit is waiting for a reply, and you press
Ctrl-C or reboot/poweroff or something like that which interrupts the
thread waiting for the reply and then proceeds to delete the CEC message.

Since the delayed work wasn't canceled, once it would trigger it referred
to stale data and resulted in a kernel oops.

Fixes: 7ec2b3b941 ("cec: add new tx/rx status bits to detect aborts/timeouts")

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: <stable@vger.kernel.org>      # for v4.18 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-10-15 09:57:52 -04:00
..
Kconfig
Makefile media: cec: remove cec-edid.c 2018-09-24 09:11:06 -04:00
cec-adap.c media: cec: forgot to cancel delayed work 2018-10-15 09:57:52 -04:00
cec-api.c media: cec: integrate cec_validate_phys_addr() in cec-api.c 2018-09-24 09:11:01 -04:00
cec-core.c media: cec: name for RC passthrough device does not need 'RC for' 2018-10-05 11:28:13 -04:00
cec-notifier.c
cec-pin-error-inj.c
cec-pin-priv.h
cec-pin.c media: cec-gpio: select correct Signal Free Time 2018-10-05 11:27:46 -04:00
cec-priv.h