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:34:47 +0000 (15:34 +0100)
commit43a27b3211bced2959d0771ab9f0da294079d7b8
tree2da2ccc97b7c3c873afb65631c4bfb11a96f338f
parent95c653522a6117287ff046881e08bdc2f079bec9
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