Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1415282 > unrolled thread

[PATCH] of: fix autoloading due to broken modalias with no 'compatible'

Started byWolfram Sang <wsa@the-dreams.de>
First post2016-06-06 18:50 +0200
Last post2016-06-10 05:30 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] of: fix autoloading due to broken modalias with no 'compatible' Wolfram Sang <wsa@the-dreams.de> - 2016-06-06 18:50 +0200
    Re: [PATCH] of: fix autoloading due to broken modalias with no  'compatible' Michael Ellerman <mpe@ellerman.id.au> - 2016-06-08 13:20 +0200
    Re: of: fix autoloading due to broken modalias with no 'compatible' Michael Ellerman <mpe@ellerman.id.au> - 2016-06-10 05:30 +0200

#1415282 — [PATCH] of: fix autoloading due to broken modalias with no 'compatible'

FromWolfram Sang <wsa@the-dreams.de>
Date2016-06-06 18:50 +0200
Subject[PATCH] of: fix autoloading due to broken modalias with no 'compatible'
Message-ID<rH5SV-7rk-5@gated-at.bofh.it>
Because of an improper dereference, a stray 'C' character was output to
the modalias when no 'compatible' was specified. This is the case for
some old PowerMac drivers which only set the 'name' property. Fix it to
let them match again.

Reported-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Tested-by: Mathieu Malaterre <malat@debian.org>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Andreas Schwab <schwab@linux-m68k.org>
Fixes: 6543becf26fff6 ("mod/file2alias: make modalias generation safe for cross compiling")
---

I think it makes sense if this goes in via ppc (with stable tag added).
D'accord?

 scripts/mod/file2alias.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c
index a9155077feefb9..fec75786f75bbb 100644
--- a/scripts/mod/file2alias.c
+++ b/scripts/mod/file2alias.c
@@ -384,7 +384,7 @@ static void do_of_entry_multi(void *symval, struct module *mod)
 	len = sprintf(alias, "of:N%sT%s", (*name)[0] ? *name : "*",
 		      (*type)[0] ? *type : "*");
 
-	if (compatible[0])
+	if ((*compatible)[0])
 		sprintf(&alias[len], "%sC%s", (*type)[0] ? "*" : "",
 			*compatible);
 
-- 
2.8.1

[toc] | [next] | [standalone]


#1417298 — Re: [PATCH] of: fix autoloading due to broken modalias with no 'compatible'

FromMichael Ellerman <mpe@ellerman.id.au>
Date2016-06-08 13:20 +0200
SubjectRe: [PATCH] of: fix autoloading due to broken modalias with no 'compatible'
Message-ID<rHJGG-7U2-5@gated-at.bofh.it>
In reply to#1415282
On Mon, 2016-06-06 at 18:48 +0200, Wolfram Sang wrote:
> Because of an improper dereference, a stray 'C' character was output to
> the modalias when no 'compatible' was specified. This is the case for
> some old PowerMac drivers which only set the 'name' property. Fix it to
> let them match again.
> 
> Reported-by: Mathieu Malaterre <malat@debian.org>
> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
> Tested-by: Mathieu Malaterre <malat@debian.org>
> Cc: Philipp Zabel <p.zabel@pengutronix.de>
> Cc: Andreas Schwab <schwab@linux-m68k.org>
> Fixes: 6543becf26fff6 ("mod/file2alias: make modalias generation safe for cross compiling")
> ---
> 
> I think it makes sense if this goes in via ppc (with stable tag added).
> D'accord?

Sure, I've grabbed it.

I added:

    Cc: stable@vger.kernel.org # v3.9+

cheers

[toc] | [prev] | [next] | [standalone]


#1419005 — Re: of: fix autoloading due to broken modalias with no 'compatible'

FromMichael Ellerman <mpe@ellerman.id.au>
Date2016-06-10 05:30 +0200
SubjectRe: of: fix autoloading due to broken modalias with no 'compatible'
Message-ID<rIliV-7BB-1@gated-at.bofh.it>
In reply to#1415282
On Mon, 2016-06-06 at 16:48:38 UTC, Wolfram Sang wrote:
> Because of an improper dereference, a stray 'C' character was output to
> the modalias when no 'compatible' was specified. This is the case for
> some old PowerMac drivers which only set the 'name' property. Fix it to
> let them match again.
> 
> Reported-by: Mathieu Malaterre <malat@debian.org>
> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
> Tested-by: Mathieu Malaterre <malat@debian.org>
> Cc: Philipp Zabel <p.zabel@pengutronix.de>
> Cc: Andreas Schwab <schwab@linux-m68k.org>
> Fixes: 6543becf26fff6 ("mod/file2alias: make modalias generation safe for cross compiling")

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/b3c0a4dab7e35a9b6d69c04156

cheers

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web