Control: tags -1 patch

---------- Forwarded message ----------
From: Wolfram Sang <[email protected]>
Date: Sun, Jun 5, 2016 at 12:32 PM
Subject: Re: Bug#714345: No sound on PowerPC with Jessie upgrade
To: Mathieu Malaterre <[email protected]>



> # modinfo snd-aoa-i2sbus
...
> alias:          of:Ni2sT*CC*
> alias:          of:Ni2sT*C

This looks broken. Can you apply the below patch and send me the modinfo
again? And check if it works now? It's more and educated guess. If this
is the bug, then it must be >3 years old...

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);

Reply via email to