diff options
| author | Nicholas Mc Guire <hofrat@osadl.org> | 2019-04-19 01:31:08 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-31 06:46:19 -0700 |
| commit | e0b75a7986514eb98f823f778c2993365aa258cf (patch) | |
| tree | d1c3b84cc72e8d521fd38df8e7ed98be4a9a4c0a /kernel | |
| parent | 355673f80835c9ddfa58b0aa18b48433394bba87 (diff) | |
staging: vc04_services: handle kzalloc failure
[ Upstream commit a5112277872a56017b777770e2fd4324d4a6c866 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
