Loading
media: pci: cx23885: check cx23885_vdev_init() return
stable inclusion from stable-v5.10.225 commit e7385510e2550a9f8b6f3d5f33c5b894ab9ba976 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IAYYUE CVE: CVE-2023-52918 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e7385510e2550a9f8b6f3d5f33c5b894ab9ba976 -------------------------------- [ Upstream commit 15126b916e39b0cb67026b0af3c014bfeb1f76b3 ] cx23885_vdev_init() can return a NULL pointer, but that pointer is used in the next line without a check. Add a NULL pointer check and go to the error unwind if it is NULL. Signed-off-by:Hans Verkuil <hverkuil-cisco@xs4all.nl> Reported-by:
Sicong Huang <huangsicong@iie.ac.cn> Signed-off-by:
Sasha Levin <sashal@kernel.org> Fixes: e47f30b1 ("V4L/DVB (7009): cx23885: Video and VBI related files") Signed-off-by:
Tengda Wu <wutengda2@huawei.com>