aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJiasheng Jiang <[email protected]>2022-01-14 07:28:40 +0100
committerMauro Carvalho Chehab <[email protected]>2022-03-07 11:06:19 +0100
commite6a21a14106d9718aa4f8e115b1e474888eeba44 (patch)
treec9d9fe68b0886e1a16cc5365e0ce690f458109d0 /tools/perf/scripts/python
parent479f4a6e602a46c110affeeb866d2d03422418ee (diff)
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: f90cf6079bf6 ("media: vidtv: add a bridge driver") Signed-off-by: Jiasheng Jiang <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions