]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
scsi: aic94xx: fix module loading
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 31 Jan 2019 00:42:12 +0000 (16:42 -0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit9ada30139946e4365b116cdc18d5cf26a3c0ab83
tree3b7901fe6d8f0102bd32ebf54152dc9ef8c7b613
parent51f5e710a99682bd9d519009b8409d2b3e94d810
scsi: aic94xx: fix module loading

BugLink: https://bugs.launchpad.net/bugs/1837664
commit 42caa0edabd6a0a392ec36a5f0943924e4954311 upstream.

The aic94xx driver is currently failing to load with errors like

sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:03.0/0000:02:00.3/0000:07:02.0/revision'

Because the PCI code had recently added a file named 'revision' to every
PCI device.  Fix this by renaming the aic94xx revision file to
aic_revision.  This is safe to do for us because as far as I can tell,
there's nothing in userspace relying on the current aic94xx revision file
so it can be renamed without breaking anything.

Fixes: 702ed3be1b1b (PCI: Create revision file in sysfs)
Cc: stable@vger.kernel.org
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/scsi/aic94xx/aic94xx_init.c