diff options
author | Jiasheng Jiang | 2023-06-19 16:12:01 +0800 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-11-20 11:52:14 +0100 |
commit | 5c26aae3723965c291c65dd2ecad6a3240d422b0 (patch) | |
tree | d509a0e296873b198b1de5db64e1e1043f4c917f /drivers/char | |
parent | e7c96f4605d91b5631694b511290608625f17cc2 (diff) |
media: vidtv: psi: Add check for kstrdup
[ 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: 7a7899f6f58e ("media: vidtv: psi: Implement an Event Information Table (EIT)")
Fixes: c2f78f0cb294 ("media: vidtv: psi: add a Network Information Table (NIT)")
Fixes: f90cf6079bf6 ("media: vidtv: add a bridge driver")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions