Re: [PATCH v3] pci: spear: Drop __initdata from spear13xx_pcie_driver

2015-03-06 Thread Bjorn Helgaas
On Thu, Feb 19, 2015 at 08:41:48PM +0300, Matwey V. Kornilov wrote: > spear13xx_pcie_driver.driver is allocated in text.init section > and then the pointer to it is passed futher. This patch is to avoid > crashes like the following, when freed memory is used. > > Also, __init has been dropped from

Re: [PATCH v3] pci: spear: Drop __initdata from spear13xx_pcie_driver

2015-03-06 Thread Matwey V. Kornilov
2015-03-06 17:42 GMT+03:00 Stanimir Varbanov : > On 02/19/2015 07:41 PM, Matwey V. Kornilov wrote: >> spear13xx_pcie_driver.driver is allocated in text.init section >> and then the pointer to it is passed futher. This patch is to avoid >> crashes like the following, when freed memory is used. >> >

Re: [PATCH v3] pci: spear: Drop __initdata from spear13xx_pcie_driver

2015-03-06 Thread Stanimir Varbanov
On 02/19/2015 07:41 PM, Matwey V. Kornilov wrote: > spear13xx_pcie_driver.driver is allocated in text.init section > and then the pointer to it is passed futher. This patch is to avoid > crashes like the following, when freed memory is used. > What happened with this patch, could it go as a fix?

Re: [PATCH v3] pci: spear: Drop __initdata from spear13xx_pcie_driver

2015-02-20 Thread Stanimir Varbanov
On 02/20/2015 12:13 PM, Matwey V. Kornilov wrote: > 2015-02-20 13:06 GMT+03:00 Stanimir Varbanov : >> On 02/19/2015 07:41 PM, Matwey V. Kornilov wrote: >>> spear13xx_pcie_driver.driver is allocated in text.init section >>> and then the pointer to it is passed futher. This patch is to avoid >>> cras

Re: [PATCH v3] pci: spear: Drop __initdata from spear13xx_pcie_driver

2015-02-20 Thread Matwey V. Kornilov
2015-02-20 13:06 GMT+03:00 Stanimir Varbanov : > On 02/19/2015 07:41 PM, Matwey V. Kornilov wrote: >> spear13xx_pcie_driver.driver is allocated in text.init section >> and then the pointer to it is passed futher. This patch is to avoid >> crashes like the following, when freed memory is used. >> >>

Re: [PATCH v3] pci: spear: Drop __initdata from spear13xx_pcie_driver

2015-02-20 Thread Stanimir Varbanov
On 02/19/2015 07:41 PM, Matwey V. Kornilov wrote: > spear13xx_pcie_driver.driver is allocated in text.init section > and then the pointer to it is passed futher. This patch is to avoid > crashes like the following, when freed memory is used. > > Also, __init has been dropped from the probe() funct

Re: [PATCH v3] pci: spear: Drop __initdata from spear13xx_pcie_driver

2015-02-19 Thread Viresh Kumar
On 19 February 2015 at 23:11, Matwey V. Kornilov wrote: > spear13xx_pcie_driver.driver is allocated in text.init section > and then the pointer to it is passed futher. This patch is to avoid > crashes like the following, when freed memory is used. > > Also, __init has been dropped from the probe()

[PATCH v3] pci: spear: Drop __initdata from spear13xx_pcie_driver

2015-02-19 Thread Matwey V. Kornilov
spear13xx_pcie_driver.driver is allocated in text.init section and then the pointer to it is passed futher. This patch is to avoid crashes like the following, when freed memory is used. Also, __init has been dropped from the probe() function referred from the struct and all called functions. #0