linux-stable/drivers/staging/vc04_services
Nicholas Mc Guire a511227787 staging: vc04_services: handle kzalloc failure
The kzalloc here was being used without checking the return - if the
kzalloc fails return VCHIQ_ERROR. The call-site of
vchiq_platform_init_state() vchiq_init_state() was not responding
to an allocation failure so checks for != VCHIQ_SUCCESS
and pass VCHIQ_ERROR up to vchiq_platform_init() which then
will fail with -EINVAL.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Reported-by: kbuild test robot <lkp@intel.com>
Acked-By: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-04-19 14:59:36 +02:00
..
bcm2835-audio staging: add missing SPDX lines to Makefile files 2019-04-03 11:10:15 +02:00
bcm2835-camera Staging: vc04_services: bcm2835-camera: Remove an exceptional & 2019-04-16 13:44:30 +02:00
interface staging: vc04_services: handle kzalloc failure 2019-04-19 14:59:36 +02:00
Kconfig staging: add missing SPDX lines to Kconfig files 2019-04-03 11:10:15 +02:00
Makefile staging: vc04_services: Remove defines from Makefile 2018-05-06 19:04:43 -07:00