mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
media: vidtv: psi: Add check for kstrdup
Add check for the return value of kstrdup() and return the error if it fails in order to avoid NULL pointer dereference. Fixes:7a7899f6f5("media: vidtv: psi: Implement an Event Information Table (EIT)") Fixes:c2f78f0cb2("media: vidtv: psi: add a Network Information Table (NIT)") Fixes:f90cf6079b("media: vidtv: add a bridge driver") Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
5f9fcbf92d
commit
76a2c5df6c
1 changed files with 40 additions and 5 deletions
Loading…
Add table
Add a link
Reference in a new issue