Skip to content
Commit 6d6cc417 authored by Alexander Stein's avatar Alexander Stein Committed by liwei
Browse files

media: tc358743: register v4l2 async device only after successful setup

mainline inclusion
from mainline-v6.9-rc1
commit 87399f1ff92203d65f1febf5919429f4bb613a02
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9Q93E
CVE: CVE-2024-35830

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=87399f1ff92203d65f1febf5919429f4bb613a02



--------------------------------

Ensure the device has been setup correctly before registering the v4l2
async device, thus allowing userspace to access.

Signed-off-by: default avatarAlexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: default avatarRobert Foss <rfoss@kernel.org>
Fixes: 4c5211a1 ("[media] tc358743: register v4l2 asynchronous subdevice")
Signed-off-by: default avatarRobert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240110090111.458115-1-alexander.stein@ew.tq-group.com


Signed-off-by: default avatarliwei <liwei728@huawei.com>
parent f5fda1e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment