diff options
author | 2018-12-07 06:13:48 -0500 | |
---|---|---|
committer | 2018-12-07 08:39:04 -0500 | |
commit | 9ed5d5fb8b432badc967decf97e4294cbb216eef (patch) | |
tree | d52424a1dc78796c26ae5f149c3e316784bdae37 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | media: cedrus: Add device-tree compatible and variant for A64 support (diff) | |
download | wireguard-linux-9ed5d5fb8b432badc967decf97e4294cbb216eef.tar.xz wireguard-linux-9ed5d5fb8b432badc967decf97e4294cbb216eef.zip |
media: cetrus: return an error if alloc fails
As warned by smatch:
drivers/staging/media/sunxi/cedrus/cedrus.c: drivers/staging/media/sunxi/cedrus/cedrus.c:93 cedrus_init_ctrls() error: potential null dereference 'ctx->ctrls'. (kzalloc returns null)
While here, remove the memset(), as kzalloc() already zeroes the
struct.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Acked-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions