]> asedeno.scripts.mit.edu Git - linux.git/commit
PCI: Print warnings for all invalid expansion ROM headers
authorVladis Dronov <vdronov@redhat.com>
Fri, 27 Nov 2015 17:20:06 +0000 (18:20 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 11 Dec 2015 01:38:06 +0000 (19:38 -0600)
commit4066df6345f5b3bacdf7944c4d9a839f1eef5773
tree1d6eefb6bb0b8c0b6aad19d2ebd1ca59d2d9c6cd
parent93de6901766c6821538b74a092e47780a9120fac
PCI: Print warnings for all invalid expansion ROM headers

We've always validated that both bytes of the Expansion ROM signature and
all four bytes of the PCI Data Structure signature (see PCI Firmware spec
r3.0, sec 5.1.1), but we only printed a warning if the first byte of the
ROM signature was invalid.

Print warnings if *any* of those bytes are invalid.  Note that we only look
at these headers if we map or read the ROM.

[bhelgaas: changelog, tweak printk format]
Signed-off-by: Vladis Dronov <vdronov@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/rom.c