diff options
author | Matias Garcia <mgarcia@rossvideo.com> | 2011-09-19 17:35:11 +0200 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2012-07-10 14:07:19 +0200 |
commit | dea0ed4a64b9d62b266d54350c2514fa7b2b1dbd (patch) | |
tree | 5bad3770119651ef4910d6be2819a90dd24751d0 /arch/powerpc/sysdev | |
parent | powerpc: Turn on BPF_JIT in ppc64_defconfig (diff) | |
download | linux-dea0ed4a64b9d62b266d54350c2514fa7b2b1dbd.tar.xz linux-dea0ed4a64b9d62b266d54350c2514fa7b2b1dbd.zip |
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 6073288fed29..edbf79465d50 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; |