Sean Young 4f0835d667 media: rc: uevent sysfs file races with rc_unregister_device()
Only report uevent file contents if device still registered, else we
might read freed memory.

Reported-by: syzbot+ceef16277388d6f24898@syzkaller.appspotmail.com
Cc: Hillf Danton <hdanton@sina.com>
Cc: <stable@vger.kernel.org> # 4.16+
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-08-28 14:06:35 +02:00
..
2020-08-07 13:00:53 -07:00
2020-08-28 11:03:36 +02:00
2020-06-03 20:59:38 -07:00
2020-08-07 18:48:15 -07:00
2020-08-07 13:00:53 -07:00