aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/vimc/vimc-common.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <[email protected]>2018-12-07 11:13:48 +0000
committerMauro Carvalho Chehab <[email protected]>2018-12-07 13:39:04 +0000
commit9ed5d5fb8b432badc967decf97e4294cbb216eef (patch)
treed52424a1dc78796c26ae5f149c3e316784bdae37 /drivers/media/platform/vimc/vimc-common.c
parentmedia: cedrus: Add device-tree compatible and variant for A64 support (diff)
downloadkernel-9ed5d5fb8b432badc967decf97e4294cbb216eef.tar.gz
kernel-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 <[email protected]> Acked-by: Paul Kocialkowski <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/platform/vimc/vimc-common.c')
0 files changed, 0 insertions, 0 deletions