Sean Young 896111dc4b media: rc: ensure that uevent can be read directly after rc device register
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: a2e2d73fa281 ("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>
2021-01-04 11:00:25 +01:00
..
2020-12-14 11:47:37 -08:00
2020-12-14 11:47:37 -08:00
2020-09-27 11:29:45 +02:00
2020-06-03 20:59:38 -07:00
2020-12-15 15:51:10 -08:00
2020-12-16 16:38:41 -08:00
2020-12-14 11:47:37 -08:00