72c342069e
[ 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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
vidtv_bridge.c | ||
vidtv_bridge.h | ||
vidtv_channel.c | ||
vidtv_channel.h | ||
vidtv_common.c | ||
vidtv_common.h | ||
vidtv_demod.c | ||
vidtv_demod.h | ||
vidtv_encoder.h | ||
vidtv_mux.c | ||
vidtv_mux.h | ||
vidtv_pes.c | ||
vidtv_pes.h | ||
vidtv_psi.c | ||
vidtv_psi.h | ||
vidtv_s302m.c | ||
vidtv_s302m.h | ||
vidtv_ts.c | ||
vidtv_ts.h | ||
vidtv_tuner.c | ||
vidtv_tuner.h |