aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJiasheng Jiang <[email protected]>2023-06-19 16:12:02 +0800
committerHans Verkuil <[email protected]>2023-10-07 10:55:45 +0200
commit1fd6eb12642e0c32692924ff359c07de4b781d78 (patch)
tree0e87b26dc209c8a789ada6fcf3215ba201d5bdb3 /tools/perf/scripts/python
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 <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions