linux/drivers/media/test-drivers
Jiasheng Jiang 1fd6eb1264 media: vidtv: mux: Add check and kfree for kstrdup
Add check for the return value of kstrdup() and return the error
if it fails in order to avoid NULL pointer dereference.
Moreover, use kfree() in the later error handling in order to avoid
memory leak.

Fixes: c2f78f0cb2 ("media: vidtv: psi: add a Network Information Table (NIT)")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2023-10-07 10:55:45 +02:00
..
vicodec media: vicodec-core: Convert to platform remove callback returning void 2023-04-11 16:59:21 +02:00
vidtv media: vidtv: mux: Add check and kfree for kstrdup 2023-10-07 10:55:45 +02:00
vimc media: Zero-initialize all structures passed to subdev pad operations 2023-04-12 09:46:06 +02:00
visl media: visl-core: Convert to platform remove callback returning void 2023-04-11 16:59:21 +02:00
vivid media: vivid: use VIVID_MODULE_NAME to fill bus_info 2023-09-27 10:47:23 +02:00
Kconfig media: visl: add virtual stateless decoder driver 2022-11-25 07:32:16 +00:00
Makefile media: visl: add virtual stateless decoder driver 2022-11-25 07:32:16 +00:00
vim2m.c media: vim2m: Convert to platform remove callback returning void 2023-04-11 16:59:21 +02:00