* [PATCH] mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt
@ 2018-06-22 14:50 Martin Kaiser
2018-06-26 7:10 ` Miquel Raynal
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Martin Kaiser @ 2018-06-22 14:50 UTC (permalink / raw)
To: Boris Brezillon, David Woodhouse, Sascha Hauer, Fabio Estevam,
Miquel Raynal
Cc: linux-mtd, linux-kernel, Martin Kaiser
mxcnd_probe_dt is called from mxcnd_probe, which is not marked as __init.
Using the sysfs unbind, bind nodes, mxcnd_probe and mxcnd_probe_dt can
potentially be called at any time. After the __init functions are cleaned,
mxcnd_probe_dt is no longer available. Calling it anyway causes a crash.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
---
I hope that my understanding is correct.
In practice, I could not get the kernel to crash, my compiler would
inline mxcnd_probe_dt into mxcnd_probe and ignore the __init.
If I marked mxcnd_probe_dt as noinline, I could trigger a crash as
follows
[root@host ]# echo bb000000.nand > /sys/bus/platform/drivers/mxc_nand/unbind
[root@host ]# echo bb000000.nand > /sys/bus/platform/drivers/mxc_nand/bind
Internal error: Oops - undefined instruction: 0 [#1] ARM
...
drivers/mtd/nand/raw/mxc_nand.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/nand/raw/mxc_nand.c b/drivers/mtd/nand/raw/mxc_nand.c
index 26cef21..90cfb5e 100644
--- a/drivers/mtd/nand/raw/mxc_nand.c
+++ b/drivers/mtd/nand/raw/mxc_nand.c
@@ -1686,7 +1686,7 @@ static const struct of_device_id mxcnd_dt_ids[] = {
};
MODULE_DEVICE_TABLE(of, mxcnd_dt_ids);
-static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
+static int mxcnd_probe_dt(struct mxc_nand_host *host)
{
struct device_node *np = host->dev->of_node;
const struct of_device_id *of_id =
@@ -1700,7 +1700,7 @@ static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
return 0;
}
#else
-static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
+static int mxcnd_probe_dt(struct mxc_nand_host *host)
{
return 1;
}
--
2.1.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt
2018-06-22 14:50 [PATCH] mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt Martin Kaiser
@ 2018-06-26 7:10 ` Miquel Raynal
2018-06-26 7:24 ` Boris Brezillon
2018-06-27 8:52 ` [PATCH v2] " Martin Kaiser
2018-06-27 20:47 ` [PATCH v3] " Martin Kaiser
2 siblings, 1 reply; 10+ messages in thread
From: Miquel Raynal @ 2018-06-26 7:10 UTC (permalink / raw)
To: Martin Kaiser
Cc: Boris Brezillon, David Woodhouse, Sascha Hauer, Fabio Estevam,
linux-mtd, linux-kernel
Hi Martin, Boris,
On Fri, 22 Jun 2018 16:50:25 +0200, Martin Kaiser <martin@kaiser.cx>
wrote:
> mxcnd_probe_dt is called from mxcnd_probe, which is not marked as __init.
>
I think this line is just a side note and should be at the end of the
commit log.
> Using the sysfs unbind, bind nodes, mxcnd_probe and mxcnd_probe_dt can
> potentially be called at any time. After the __init functions are cleaned,
> mxcnd_probe_dt is no longer available. Calling it anyway causes a crash.
The above paragraph explains the problem and the solution, you can just
add something like "mcvnd_probe is untouched because it is already not
marked as __init" instead of the first line.
>
> Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Boris, do you think this patch is a good candidate for stable?
If yes, Martin, could you please add a couple of stable/fixes tags above
your SoB?
Thanks,
Miquèl
> ---
> I hope that my understanding is correct.
>
> In practice, I could not get the kernel to crash, my compiler would
> inline mxcnd_probe_dt into mxcnd_probe and ignore the __init.
>
> If I marked mxcnd_probe_dt as noinline, I could trigger a crash as
> follows
>
> [root@host ]# echo bb000000.nand > /sys/bus/platform/drivers/mxc_nand/unbind
> [root@host ]# echo bb000000.nand > /sys/bus/platform/drivers/mxc_nand/bind
> Internal error: Oops - undefined instruction: 0 [#1] ARM
> ...
>
> drivers/mtd/nand/raw/mxc_nand.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mtd/nand/raw/mxc_nand.c b/drivers/mtd/nand/raw/mxc_nand.c
> index 26cef21..90cfb5e 100644
> --- a/drivers/mtd/nand/raw/mxc_nand.c
> +++ b/drivers/mtd/nand/raw/mxc_nand.c
> @@ -1686,7 +1686,7 @@ static const struct of_device_id mxcnd_dt_ids[] = {
> };
> MODULE_DEVICE_TABLE(of, mxcnd_dt_ids);
>
> -static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
> +static int mxcnd_probe_dt(struct mxc_nand_host *host)
> {
> struct device_node *np = host->dev->of_node;
> const struct of_device_id *of_id =
> @@ -1700,7 +1700,7 @@ static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
> return 0;
> }
> #else
> -static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
> +static int mxcnd_probe_dt(struct mxc_nand_host *host)
> {
> return 1;
> }
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt
2018-06-26 7:10 ` Miquel Raynal
@ 2018-06-26 7:24 ` Boris Brezillon
2018-06-26 7:36 ` Miquel Raynal
0 siblings, 1 reply; 10+ messages in thread
From: Boris Brezillon @ 2018-06-26 7:24 UTC (permalink / raw)
To: Miquel Raynal
Cc: Martin Kaiser, David Woodhouse, Sascha Hauer, Fabio Estevam,
linux-mtd, linux-kernel
On Tue, 26 Jun 2018 09:10:05 +0200
Miquel Raynal <miquel.raynal@bootlin.com> wrote:
> Hi Martin, Boris,
>
> On Fri, 22 Jun 2018 16:50:25 +0200, Martin Kaiser <martin@kaiser.cx>
> wrote:
>
> > mxcnd_probe_dt is called from mxcnd_probe, which is not marked as __init.
> >
>
> I think this line is just a side note and should be at the end of the
> commit log.
>
> > Using the sysfs unbind, bind nodes, mxcnd_probe and mxcnd_probe_dt can
> > potentially be called at any time. After the __init functions are cleaned,
> > mxcnd_probe_dt is no longer available. Calling it anyway causes a crash.
>
> The above paragraph explains the problem and the solution, you can just
> add something like "mcvnd_probe is untouched because it is already not
> marked as __init" instead of the first line.
>
> >
> > Signed-off-by: Martin Kaiser <martin@kaiser.cx>
>
> Boris, do you think this patch is a good candidate for stable?
>
> If yes, Martin, could you please add a couple of stable/fixes tags above
> your SoB?
We should at least have a Fixes tag. For the stable one, I'm not so
sure because the bug does not exist in practice (the compiler always
inline mxcnd_probe_dt()).
>
> Thanks,
> Miquèl
>
> > ---
> > I hope that my understanding is correct.
> >
> > In practice, I could not get the kernel to crash, my compiler would
> > inline mxcnd_probe_dt into mxcnd_probe and ignore the __init.
> >
> > If I marked mxcnd_probe_dt as noinline, I could trigger a crash as
> > follows
> >
> > [root@host ]# echo bb000000.nand > /sys/bus/platform/drivers/mxc_nand/unbind
> > [root@host ]# echo bb000000.nand > /sys/bus/platform/drivers/mxc_nand/bind
> > Internal error: Oops - undefined instruction: 0 [#1] ARM
> > ...
> >
> > drivers/mtd/nand/raw/mxc_nand.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/mtd/nand/raw/mxc_nand.c b/drivers/mtd/nand/raw/mxc_nand.c
> > index 26cef21..90cfb5e 100644
> > --- a/drivers/mtd/nand/raw/mxc_nand.c
> > +++ b/drivers/mtd/nand/raw/mxc_nand.c
> > @@ -1686,7 +1686,7 @@ static const struct of_device_id mxcnd_dt_ids[] = {
> > };
> > MODULE_DEVICE_TABLE(of, mxcnd_dt_ids);
> >
> > -static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
> > +static int mxcnd_probe_dt(struct mxc_nand_host *host)
> > {
> > struct device_node *np = host->dev->of_node;
> > const struct of_device_id *of_id =
> > @@ -1700,7 +1700,7 @@ static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
> > return 0;
> > }
> > #else
> > -static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
> > +static int mxcnd_probe_dt(struct mxc_nand_host *host)
> > {
> > return 1;
> > }
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt
2018-06-26 7:24 ` Boris Brezillon
@ 2018-06-26 7:36 ` Miquel Raynal
2018-06-27 8:55 ` Martin Kaiser
0 siblings, 1 reply; 10+ messages in thread
From: Miquel Raynal @ 2018-06-26 7:36 UTC (permalink / raw)
To: Boris Brezillon
Cc: Martin Kaiser, David Woodhouse, Sascha Hauer, Fabio Estevam,
linux-mtd, linux-kernel
Hi Boris,
On Tue, 26 Jun 2018 09:24:13 +0200, Boris Brezillon
<boris.brezillon@bootlin.com> wrote:
> On Tue, 26 Jun 2018 09:10:05 +0200
> Miquel Raynal <miquel.raynal@bootlin.com> wrote:
>
> > Hi Martin, Boris,
> >
> > On Fri, 22 Jun 2018 16:50:25 +0200, Martin Kaiser <martin@kaiser.cx>
> > wrote:
> >
> > > mxcnd_probe_dt is called from mxcnd_probe, which is not marked as __init.
> > >
> >
> > I think this line is just a side note and should be at the end of the
> > commit log.
> >
> > > Using the sysfs unbind, bind nodes, mxcnd_probe and mxcnd_probe_dt can
> > > potentially be called at any time. After the __init functions are cleaned,
> > > mxcnd_probe_dt is no longer available. Calling it anyway causes a crash.
> >
> > The above paragraph explains the problem and the solution, you can just
> > add something like "mcvnd_probe is untouched because it is already not
> > marked as __init" instead of the first line.
> >
> > >
> > > Signed-off-by: Martin Kaiser <martin@kaiser.cx>
> >
> > Boris, do you think this patch is a good candidate for stable?
> >
> > If yes, Martin, could you please add a couple of stable/fixes tags above
> > your SoB?
>
> We should at least have a Fixes tag. For the stable one, I'm not so
> sure because the bug does not exist in practice (the compiler always
> inline mxcnd_probe_dt()).
Fine, then a Fixes tag will be enough and I will take it into
nand/next as it is not urgent at all to have it in the main tree.
Miquèl
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v2] mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt
2018-06-22 14:50 [PATCH] mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt Martin Kaiser
2018-06-26 7:10 ` Miquel Raynal
@ 2018-06-27 8:52 ` Martin Kaiser
2018-06-27 9:01 ` Miquel Raynal
2018-06-27 20:47 ` [PATCH v3] " Martin Kaiser
2 siblings, 1 reply; 10+ messages in thread
From: Martin Kaiser @ 2018-06-27 8:52 UTC (permalink / raw)
To: Boris Brezillon, David Woodhouse, Sascha Hauer, Fabio Estevam,
Miquel Raynal
Cc: linux-mtd, linux-kernel, Martin Kaiser
Using the sysfs unbind, bind nodes, mxcnd_probe and mxcnd_probe_dt can
potentially be called at any time. After the __init functions are cleaned,
mxcnd_probe_dt is no longer available. Calling it anyway causes a crash.
mxcnd_probe used to be marked as __init, this was removed years ago.
Remove the __init qualifier from from mxcnd_probe_dt as well.
Fixes: 06f2551 ("mtd: remove use of __devinit")
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
---
changes in v2
- rephrased the commit message
- added a Fixes: tag
drivers/mtd/nand/raw/mxc_nand.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/nand/raw/mxc_nand.c b/drivers/mtd/nand/raw/mxc_nand.c
index 26cef21..90cfb5e 100644
--- a/drivers/mtd/nand/raw/mxc_nand.c
+++ b/drivers/mtd/nand/raw/mxc_nand.c
@@ -1686,7 +1686,7 @@ static const struct of_device_id mxcnd_dt_ids[] = {
};
MODULE_DEVICE_TABLE(of, mxcnd_dt_ids);
-static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
+static int mxcnd_probe_dt(struct mxc_nand_host *host)
{
struct device_node *np = host->dev->of_node;
const struct of_device_id *of_id =
@@ -1700,7 +1700,7 @@ static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
return 0;
}
#else
-static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
+static int mxcnd_probe_dt(struct mxc_nand_host *host)
{
return 1;
}
--
2.1.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt
2018-06-26 7:36 ` Miquel Raynal
@ 2018-06-27 8:55 ` Martin Kaiser
0 siblings, 0 replies; 10+ messages in thread
From: Martin Kaiser @ 2018-06-27 8:55 UTC (permalink / raw)
To: Miquel Raynal
Cc: Boris Brezillon, David Woodhouse, Sascha Hauer, Fabio Estevam,
linux-mtd, linux-kernel
Hi Miquel & Boris,
thanks for your feedback.
Thus wrote Miquel Raynal (miquel.raynal@bootlin.com):
> Hi Boris,
> On Tue, 26 Jun 2018 09:24:13 +0200, Boris Brezillon
> <boris.brezillon@bootlin.com> wrote:
> > On Tue, 26 Jun 2018 09:10:05 +0200
> > Miquel Raynal <miquel.raynal@bootlin.com> wrote:
> > > Hi Martin, Boris,
> > > On Fri, 22 Jun 2018 16:50:25 +0200, Martin Kaiser <martin@kaiser.cx>
> > > wrote:
> > > > mxcnd_probe_dt is called from mxcnd_probe, which is not marked as __init.
> > > I think this line is just a side note and should be at the end of the
> > > commit log.
> > > > Using the sysfs unbind, bind nodes, mxcnd_probe and mxcnd_probe_dt can
> > > > potentially be called at any time. After the __init functions are cleaned,
> > > > mxcnd_probe_dt is no longer available. Calling it anyway causes a crash.
> > > The above paragraph explains the problem and the solution, you can just
> > > add something like "mcvnd_probe is untouched because it is already not
> > > marked as __init" instead of the first line.
> > > > Signed-off-by: Martin Kaiser <martin@kaiser.cx>
> > > Boris, do you think this patch is a good candidate for stable?
> > > If yes, Martin, could you please add a couple of stable/fixes tags above
> > > your SoB?
> > We should at least have a Fixes tag. For the stable one, I'm not so
> > sure because the bug does not exist in practice (the compiler always
> > inline mxcnd_probe_dt()).
> Fine, then a Fixes tag will be enough and I will take it into
> nand/next as it is not urgent at all to have it in the main tree.
I agree that this is not a candidate for stable. I just sent an update
with a Fixes tag and rephrased commit message.
Best regards,
Martin
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2] mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt
2018-06-27 8:52 ` [PATCH v2] " Martin Kaiser
@ 2018-06-27 9:01 ` Miquel Raynal
0 siblings, 0 replies; 10+ messages in thread
From: Miquel Raynal @ 2018-06-27 9:01 UTC (permalink / raw)
To: Martin Kaiser
Cc: Boris Brezillon, David Woodhouse, Sascha Hauer, Fabio Estevam,
linux-mtd, linux-kernel
Hi Martin,
On Wed, 27 Jun 2018 10:52:37 +0200, Martin Kaiser <martin@kaiser.cx>
wrote:
> Using the sysfs unbind, bind nodes, mxcnd_probe and mxcnd_probe_dt can
> potentially be called at any time. After the __init functions are cleaned,
> mxcnd_probe_dt is no longer available. Calling it anyway causes a crash.
>
> mxcnd_probe used to be marked as __init, this was removed years ago.
> Remove the __init qualifier from from mxcnd_probe_dt as well.
>
> Fixes: 06f2551 ("mtd: remove use of __devinit")
Nitpick: the Fixes tag should use at least the 12 first characters of
the SHA-1 ID, see:
https://www.kernel.org/doc/html/v4.16/process/submitting-patches.html#describe-your-changes
Thanks,
Miquèl
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v3] mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt
2018-06-22 14:50 [PATCH] mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt Martin Kaiser
2018-06-26 7:10 ` Miquel Raynal
2018-06-27 8:52 ` [PATCH v2] " Martin Kaiser
@ 2018-06-27 20:47 ` Martin Kaiser
2018-06-27 21:35 ` Boris Brezillon
2018-07-01 18:12 ` Miquel Raynal
2 siblings, 2 replies; 10+ messages in thread
From: Martin Kaiser @ 2018-06-27 20:47 UTC (permalink / raw)
To: Boris Brezillon, David Woodhouse, Sascha Hauer, Fabio Estevam,
Miquel Raynal
Cc: linux-mtd, linux-kernel, Martin Kaiser
Using the sysfs unbind, bind nodes, mxcnd_probe and mxcnd_probe_dt can
potentially be called at any time. After the __init functions are cleaned,
mxcnd_probe_dt is no longer available. Calling it anyway causes a crash.
mxcnd_probe used to be marked as __init, this was removed years ago.
Remove the __init qualifier from from mxcnd_probe_dt as well.
Fixes: 06f255106923 ("mtd: remove use of __devinit")
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
---
changes in v3
- show the first 12 characters of the SHA-1 ID in the Fixes: tag
changes in v2
- rephrased the commit message
- added a Fixes: tag
drivers/mtd/nand/raw/mxc_nand.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/nand/raw/mxc_nand.c b/drivers/mtd/nand/raw/mxc_nand.c
index 26cef218bb43..90cfb5e730aa 100644
--- a/drivers/mtd/nand/raw/mxc_nand.c
+++ b/drivers/mtd/nand/raw/mxc_nand.c
@@ -1686,7 +1686,7 @@ static const struct of_device_id mxcnd_dt_ids[] = {
};
MODULE_DEVICE_TABLE(of, mxcnd_dt_ids);
-static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
+static int mxcnd_probe_dt(struct mxc_nand_host *host)
{
struct device_node *np = host->dev->of_node;
const struct of_device_id *of_id =
@@ -1700,7 +1700,7 @@ static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
return 0;
}
#else
-static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
+static int mxcnd_probe_dt(struct mxc_nand_host *host)
{
return 1;
}
--
2.1.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v3] mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt
2018-06-27 20:47 ` [PATCH v3] " Martin Kaiser
@ 2018-06-27 21:35 ` Boris Brezillon
2018-07-01 18:12 ` Miquel Raynal
1 sibling, 0 replies; 10+ messages in thread
From: Boris Brezillon @ 2018-06-27 21:35 UTC (permalink / raw)
To: Martin Kaiser
Cc: David Woodhouse, Sascha Hauer, Fabio Estevam, Miquel Raynal,
linux-mtd, linux-kernel
On Wed, 27 Jun 2018 22:47:44 +0200
Martin Kaiser <martin@kaiser.cx> wrote:
> Using the sysfs unbind, bind nodes, mxcnd_probe and mxcnd_probe_dt can
> potentially be called at any time. After the __init functions are cleaned,
> mxcnd_probe_dt is no longer available. Calling it anyway causes a crash.
>
> mxcnd_probe used to be marked as __init, this was removed years ago.
> Remove the __init qualifier from from mxcnd_probe_dt as well.
>
> Fixes: 06f255106923 ("mtd: remove use of __devinit")
> Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
> ---
> changes in v3
> - show the first 12 characters of the SHA-1 ID in the Fixes: tag
>
> changes in v2
> - rephrased the commit message
> - added a Fixes: tag
>
> drivers/mtd/nand/raw/mxc_nand.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mtd/nand/raw/mxc_nand.c b/drivers/mtd/nand/raw/mxc_nand.c
> index 26cef218bb43..90cfb5e730aa 100644
> --- a/drivers/mtd/nand/raw/mxc_nand.c
> +++ b/drivers/mtd/nand/raw/mxc_nand.c
> @@ -1686,7 +1686,7 @@ static const struct of_device_id mxcnd_dt_ids[] = {
> };
> MODULE_DEVICE_TABLE(of, mxcnd_dt_ids);
>
> -static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
> +static int mxcnd_probe_dt(struct mxc_nand_host *host)
> {
> struct device_node *np = host->dev->of_node;
> const struct of_device_id *of_id =
> @@ -1700,7 +1700,7 @@ static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
> return 0;
> }
> #else
> -static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
> +static int mxcnd_probe_dt(struct mxc_nand_host *host)
> {
> return 1;
> }
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3] mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt
2018-06-27 20:47 ` [PATCH v3] " Martin Kaiser
2018-06-27 21:35 ` Boris Brezillon
@ 2018-07-01 18:12 ` Miquel Raynal
1 sibling, 0 replies; 10+ messages in thread
From: Miquel Raynal @ 2018-07-01 18:12 UTC (permalink / raw)
To: Martin Kaiser
Cc: Boris Brezillon, David Woodhouse, Sascha Hauer, Fabio Estevam,
linux-mtd, linux-kernel
Hi Martin,
Martin Kaiser <martin@kaiser.cx> wrote on Wed, 27 Jun 2018 22:47:44
+0200:
> Using the sysfs unbind, bind nodes, mxcnd_probe and mxcnd_probe_dt can
> potentially be called at any time. After the __init functions are cleaned,
> mxcnd_probe_dt is no longer available. Calling it anyway causes a crash.
>
> mxcnd_probe used to be marked as __init, this was removed years ago.
> Remove the __init qualifier from from mxcnd_probe_dt as well.
>
> Fixes: 06f255106923 ("mtd: remove use of __devinit")
> Signed-off-by: Martin Kaiser <martin@kaiser.cx>
> ---
Applied to nand/next, thanks!
Miquèl
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2018-07-01 18:12 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-22 14:50 [PATCH] mtd: rawnand: mxc: remove __init qualifier from mxcnd_probe_dt Martin Kaiser
2018-06-26 7:10 ` Miquel Raynal
2018-06-26 7:24 ` Boris Brezillon
2018-06-26 7:36 ` Miquel Raynal
2018-06-27 8:55 ` Martin Kaiser
2018-06-27 8:52 ` [PATCH v2] " Martin Kaiser
2018-06-27 9:01 ` Miquel Raynal
2018-06-27 20:47 ` [PATCH v3] " Martin Kaiser
2018-06-27 21:35 ` Boris Brezillon
2018-07-01 18:12 ` Miquel Raynal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).