Skip to content
Commit 4f0835d6 authored by Sean Young's avatar Sean Young Committed by Mauro Carvalho Chehab
Browse files

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: default avatar <syzbot+ceef16277388d6f24898@syzkaller.appspotmail.com>
Cc: Hillf Danton <hdanton@sina.com>
Cc: <stable@vger.kernel.org> # 4.16+
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 8a30c017
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment