]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI/DPC: Initialize aer_err_info before using it
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 22 May 2025 23:21:07 +0000 (18:21 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:16 +0000 (11:05 +0100)
commit6c1344a5bb1c653018d3e5448aac6a2aa1b3dbb5
tree082a83f498dd1fa986abc21737e52f1069a65598
parent9f133e04c62246353b8b1f0a679535c65161ebcf
PCI/DPC: Initialize aer_err_info before using it

[ Upstream commit a424b598e6a6c1e69a2bb801d6fd16e805ab2c38 ]

Previously the struct aer_err_info "info" was allocated on the stack
without being initialized, so it contained junk except for the fields we
explicitly set later.

Initialize "info" at declaration so it starts as all zeros.

Fixes: 8aefa9b0d910 ("PCI/DPC: Print AER status in DPC event handling")
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://patch.msgid.link/20250522232339.1525671-2-helgaas@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/pcie/dpc.c