linux/drivers/media/test-drivers/vidtv
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
..
Kconfig media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
Makefile media: vidtv: add a bridge driver 2020-09-12 09:43:12 +02:00
vidtv_bridge.c media: vidtv_bridge: Convert to platform remove callback returning void 2023-04-11 16:59:21 +02:00
vidtv_bridge.h media: vidtv: use a simpler name in platform_{device|driver} 2021-01-27 12:29:17 +01:00
vidtv_channel.c media: [next] media: vidtv: fix a read from an object after it has been freed 2020-12-02 13:15:07 +01:00
vidtv_channel.h media: vidtv.rst: add kernel-doc markups 2020-11-26 08:05:24 +01:00
vidtv_common.c media: vidtv: fix 32-bit warnings 2020-09-14 15:48:11 +02:00
vidtv_common.h media: vidtv: fix the network ID range 2020-11-26 08:05:23 +01:00
vidtv_demod.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
vidtv_demod.h media: vidtv.rst: add kernel-doc markups 2020-11-26 08:05:24 +01:00
vidtv_encoder.h media: vidtv.rst: add kernel-doc markups 2020-11-26 08:05:24 +01:00
vidtv_mux.c media: vidtv: mux: Add check and kfree for kstrdup 2023-10-07 10:55:45 +02:00
vidtv_mux.h media: vidtv.rst: add kernel-doc markups 2020-11-26 08:05:24 +01:00
vidtv_pes.c media: vidtv: avoid copying data for PES structs 2020-11-26 07:47:34 +01:00
vidtv_pes.h media: vidtv.rst: add kernel-doc markups 2020-11-26 08:05:24 +01:00
vidtv_psi.c media: vidtv: psi: Add check for kstrdup 2023-10-07 10:55:45 +02:00
vidtv_psi.h media: vidtv: fix some warnings 2020-12-08 08:15:49 +01:00
vidtv_s302m.c media: vidtv: use vfree() for memory allocated with vzalloc() 2022-03-18 07:28:17 +01:00
vidtv_s302m.h media: vidtv.rst: add kernel-doc markups 2020-11-26 08:05:24 +01:00
vidtv_ts.c media: vidtv: reorganize includes 2020-11-26 07:41:03 +01:00
vidtv_ts.h media: vidtv: remove unused field from 'struct vidtv_mpeg_ts' 2021-01-27 11:47:02 +01:00
vidtv_tuner.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
vidtv_tuner.h media: vidtv: reorganize includes 2020-11-26 07:41:03 +01:00