diff options
| author | Colin Ian King <colin.king@canonical.com> | 2019-12-04 15:11:59 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2019-12-13 09:28:43 +0100 |
| commit | 11e0e167d071a28288a7a0a211d48c571d19b56f (patch) | |
| tree | b5074bdf9ea54730e1916b88b779d3f0003bd950 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 55f240a21eb13717da2872ebef2eb0af4007a5bd (diff) | |
| download | linux-11e0e167d071a28288a7a0a211d48c571d19b56f.tar.gz linux-11e0e167d071a28288a7a0a211d48c571d19b56f.zip | |
media: meson: add missing allocation failure check on new_buf
Currently if the allocation of new_buf fails then a null pointer
dereference occurs when assiging new_buf->vb. Avoid this by returning
early on a memory allocation failure as there is not much more can
be done at this point.
Addresses-Coverity: ("Dereference null return")
Fixes: 3e7f51bd9607 ("media: meson: add v4l2 m2m video decoder driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
