linux/drivers/media/test-drivers/vidtv
Jiasheng Jiang e6a21a1410 media: vidtv: Check for null return of vzalloc
As the possible failure of the vzalloc(), e->encoder_buf might be NULL.
Therefore, it should be better to check it in order
to guarantee the success of the initialization.
If fails, we need to free not only 'e' but also 'e->name'.
Also, if the allocation for ctx fails, we need to free 'e->encoder_buf'
else.

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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-03-07 11:06:19 +01:00
..
Kconfig
Makefile media: vidtv: add a bridge driver 2020-09-12 09:43:12 +02:00
vidtv_bridge.c media: vidtv: move kfree(dvb) to vidtv_bridge_dev_release() 2021-10-19 08:08:19 +01: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: vidtv: do some cleanups at the driver 2020-11-26 08:05:23 +01: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: simplify EIT write function 2020-11-26 08:05:24 +01: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: remove unneeded variable make code cleaner 2021-12-14 16:19:04 +01:00
vidtv_psi.h media: vidtv: fix some warnings 2020-12-08 08:15:49 +01:00
vidtv_s302m.c media: vidtv: Check for null return of vzalloc 2022-03-07 11:06:19 +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: vidtv: reorganize includes 2020-11-26 07:41:03 +01:00
vidtv_tuner.h media: vidtv: reorganize includes 2020-11-26 07:41:03 +01:00