linux_dsm_epyc7002/drivers/media/rc
Sean Young b3b75f8cd1 media: rc: ensure that uevent can be read directly after rc device register
commit 896111dc4bcf887b835b3ef54f48b450d4692a1d upstream.

There is a race condition where if the /sys/class/rc0/uevent file is read
before rc_dev->registered is set to true, -ENODEV will be returned.

Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1901089

Cc: stable@vger.kernel.org
Fixes: a2e2d73fa2 ("media: rc: do not access device via sysfs after rc_unregister_device()")
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-02-03 23:28:38 +01:00
..
img-ir
keymaps
ati_remote.c media: ati_remote: sanity check for both endpoints 2020-09-27 11:24:07 +02:00
bpf-lirc.c
ene_ir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ene_ir.h
fintek-cir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
fintek-cir.h
gpio-ir-recv.c media: rc: gpio-ir-recv: add QoS support for cpuidle system 2020-09-27 11:27:23 +02:00
gpio-ir-tx.c
igorplugusb.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
iguanair.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
imon_raw.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
imon.c
ir_toy.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-hix5hd2.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-imon-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-jvc-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-mce_kbd-decoder.c media: rc: fix timeout handling after switch to microsecond durations 2021-02-03 23:28:38 +01:00
ir-nec-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-rc5-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-rc6-decoder.c Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
ir-rcmm-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-rx51.c
ir-sanyo-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-sharp-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ir-sony-decoder.c Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
ir-spi.c
ir-xmp-decoder.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ite-cir.c media: rc: ite-cir: fix min_timeout calculation 2021-02-03 23:28:38 +01:00
ite-cir.h media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
Kconfig
lirc_dev.c media: rc: rename ir_lirc_* functions to lirc_* 2020-09-03 16:19:27 +02:00
Makefile
mceusb.c Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
meson-ir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
mtk-cir.c media: mtk-cir: fix calculation of chk period 2020-12-01 16:00:51 +01:00
nuvoton-cir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
nuvoton-cir.h media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
pwm-ir-tx.c
rc-core-priv.h media: rc: rename ir_lirc_* functions to lirc_* 2020-09-03 16:19:27 +02:00
rc-ir-raw.c media: rc: rename ir_lirc_* functions to lirc_* 2020-09-03 16:19:27 +02:00
rc-loopback.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
rc-main.c media: rc: ensure that uevent can be read directly after rc device register 2021-02-03 23:28:38 +01:00
redrat3.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
serial_ir.c media: rc: fix timeout handling after switch to microsecond durations 2021-02-03 23:28:38 +01:00
sir_ir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
st_rc.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
streamzap.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
sunxi-cir.c media: sunxi-cir: ensure IR is handled when it is continuous 2020-12-30 11:54:04 +01:00
tango-ir.c
ttusbir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
winbond-cir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
xbox_remote.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
zx-irdec.c