powerpc/powernv/eeh/npu: Fix uninitialized variables in opal_pci_eeh_freeze_status
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Mon, 19 Nov 2018 04:25:17 +0000 (15:25 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:37:43 +0000 (15:37 +0100)
commita355ad546e7b9464f19a424ed4efe2d0139a31f1
tree4e1d300c3b5534ad9385aee0ef0bbdd3bee541d9
parent7a0d07f81e7e38ad063f9f94edcb812dff868a4f
powerpc/powernv/eeh/npu: Fix uninitialized variables in opal_pci_eeh_freeze_status

[ Upstream commit c20577014f85f36d4e137d3d52a1f61225b4a3d2 ]

The current implementation of the OPAL_PCI_EEH_FREEZE_STATUS call in
skiboot's NPU driver does not touch the pci_error_type parameter so
it might have garbage but the powernv code analyzes it nevertheless.

This initializes pcierr and fstate to zero in all call sites.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Sam Bobroff <sbobroff@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/platforms/powernv/eeh-powernv.c
arch/powerpc/platforms/powernv/pci-ioda.c
arch/powerpc/platforms/powernv/pci.c