summaryrefslogtreecommitdiff
path: root/Documentation/admin-guide
diff options
context:
space:
mode:
authorJiasheng Jiang <jiasheng@iscas.ac.cn>2023-06-19 16:12:02 +0800
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2023-10-07 10:55:45 +0200
commit1fd6eb12642e0c32692924ff359c07de4b781d78 (patch)
tree0e87b26dc209c8a789ada6fcf3215ba201d5bdb3 /Documentation/admin-guide
parent76a2c5df6ca8bd8ada45e953b8c72b746f42918d (diff)
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: 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>
Diffstat (limited to 'Documentation/admin-guide')
0 files changed, 0 insertions, 0 deletions