kernel_samsung_a53x/drivers/pci/controller
Dan Carpenter 3b301c9f7e PCI: dwc: Fix a 64bit bug in dw_pcie_ep_raise_msix_irq()
commit b5d1b4b46f856da1473c7ba9a5cdfcb55c9b2478 upstream.

The "msg_addr" variable is u64.  However, the "aligned_offset" is an
unsigned int.  This means that when the code does:

  msg_addr &= ~aligned_offset;

it will unintentionally zero out the high 32 bits.  Use ALIGN_DOWN() to do
the alignment instead.

Fixes: 2217fffcd63f ("PCI: dwc: endpoint: Fix dw_pcie_ep_raise_msix_irq() alignment support")
Link: https://lore.kernel.org/r/af59c7ad-ab93-40f7-ad4a-7ac0b14d37f5@moroto.mountain
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-18 12:13:40 +01:00
..
cadence Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwc PCI: dwc: Fix a 64bit bug in dw_pcie_ep_raise_msix_irq() 2024-11-18 12:13:40 +01:00
mobiveil Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-aardvark.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-ftpci100.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-host-common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-host-generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-hyperv-intf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-hyperv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-loongson.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-mvebu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-rcar-gen2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-tegra.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-thunder-ecam.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-thunder-pem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-v3-semi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-versatile.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-xgene-msi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-xgene.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-altera-msi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-altera.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-brcmstb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-hisi-error.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-iproc-bcma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-iproc-msi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-iproc-platform.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-iproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-iproc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-mediatek.c PCI: mediatek: Clear interrupt status before dispatching handler 2024-11-18 12:12:54 +01:00
pcie-rcar-ep.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rcar-host.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rcar.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rcar.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rockchip-ep.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rockchip-host.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rockchip.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rockchip.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-tango.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-xilinx-cpm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-xilinx-nwl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-xilinx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00