]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
of: fix autoloading due to broken modalias with no 'compatible'
authorWolfram Sang <wsa@the-dreams.de>
Mon, 6 Jun 2016 16:48:38 +0000 (18:48 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 9 Aug 2016 13:07:56 +0000 (15:07 +0200)
commitaebe15aa45b27d6de454136406abcc0d3e7a4715
tree81e6a242644f6816b35cfe60a47930599cdeb641
parent2bf68fcb0b466526e0bf7cc3243c6fd72b639b3a
of: fix autoloading due to broken modalias with no 'compatible'

BugLink: http://bugs.launchpad.net/bugs/1607404
commit b3c0a4dab7e35a9b6d69c0415641d2280fdefb2b upstream.

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")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
scripts/mod/file2alias.c