kernel_samsung_a53x/drivers/media/test-drivers/vidtv
Jiasheng Jiang 72c342069e media: vidtv: mux: Add check and kfree for kstrdup
[ Upstream commit 1fd6eb12642e0c32692924ff359c07de4b781d78 ]

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: c2f78f0cb294 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 11:43:07 +01:00
..
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vidtv_bridge.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vidtv_bridge.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vidtv_channel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vidtv_channel.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vidtv_common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vidtv_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vidtv_demod.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vidtv_demod.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vidtv_encoder.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vidtv_mux.c media: vidtv: mux: Add check and kfree for kstrdup 2024-11-18 11:43:07 +01:00
vidtv_mux.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vidtv_pes.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vidtv_pes.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vidtv_psi.c media: vidtv: psi: Add check for kstrdup 2024-11-18 11:43:07 +01:00
vidtv_psi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vidtv_s302m.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vidtv_s302m.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vidtv_ts.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vidtv_ts.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vidtv_tuner.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vidtv_tuner.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00