Commit 06857e7f authored by 蒋家盛's avatar 蒋家盛 Committed by Zheng Zengkai
Browse files

media: vidtv: psi: Add check for kstrdup

stable inclusion
from stable-v6.6.2
commit a51335704a3f90eaf23a6864faefca34b382490a
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8IW7G

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a51335704a3f90eaf23a6864faefca34b382490a



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

[ Upstream commit 76a2c5df6ca8bd8ada45e953b8c72b746f42918d ]

Add check for the return value of kstrdup() and return the error
if it fails in order to avoid NULL pointer dereference.

Fixes: 7a7899f6 ("media: vidtv: psi: Implement an Event Information Table (EIT)")
Fixes: c2f78f0c ("media: vidtv: psi: add a Network Information Table (NIT)")
Fixes: f90cf607 ("media: vidtv: add a bridge driver")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 82fa7e46
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment