Mauro Carvalho Chehab 9ed5d5fb8b 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>
2018-12-07 08:39:04 -05:00
..
2018-10-31 08:54:15 -07:00
2018-10-29 10:38:10 -07:00
2018-10-29 10:38:10 -07:00
2018-10-29 10:38:10 -07:00
2018-10-29 10:38:10 -07:00
2018-10-29 10:38:10 -07:00
2018-06-12 16:19:22 -07:00
2018-10-02 15:14:14 -07:00
2018-10-02 15:14:14 -07:00