diff options
author | Matias Garcia <mgarcia@rossvideo.com> | 2011-09-19 11:35:11 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2012-07-10 07:07:19 -0500 |
commit | dea0ed4a64b9d62b266d54350c2514fa7b2b1dbd (patch) | |
tree | 5bad3770119651ef4910d6be2819a90dd24751d0 /arch/powerpc/sysdev | |
parent | db9112173b185995b80f56e136bd2ae44e4e6366 (diff) | |
download | op-kernel-dev-dea0ed4a64b9d62b266d54350c2514fa7b2b1dbd.zip op-kernel-dev-dea0ed4a64b9d62b266d54350c2514fa7b2b1dbd.tar.gz |
powerpc/fsl/pci: Fix when quirk_fsl_pcie_header is freed up
Change quirk_fsl_pcie_header from __init to __devinit to ensure if we
have a runtime access (like via an FPGA being loaded after boot on the
PCIe link) that we dont access randomly freed memory.
Signed-off-by: Matias Garcia <mgarcia@rossvideo.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r-- | arch/powerpc/sysdev/fsl_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c index 6073288..edbf794 100644 --- a/arch/powerpc/sysdev/fsl_pci.c +++ b/arch/powerpc/sysdev/fsl_pci.c @@ -36,7 +36,7 @@ static int fsl_pcie_bus_fixup, is_mpc83xx_pci; -static void __init quirk_fsl_pcie_header(struct pci_dev *dev) +static void __devinit quirk_fsl_pcie_header(struct pci_dev *dev) { u8 progif; |