OSDN Git Service

PCI: Add check code for last image indicator not set
authorRex Zhu <Rex.Zhu@amd.com>
Tue, 5 Jun 2018 01:46:46 +0000 (09:46 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 30 Jun 2018 02:16:23 +0000 (21:16 -0500)
commitbeced88e6af43c9653cee09f5111ae7495824e07
tree26075954aeafea92c7c2dda3845b1ba2709e8bda
parent445ec321e71b3124abacfb358f72ac6a70d87602
PCI: Add check code for last image indicator not set

If the "last image" indicator was not set in the PCI data struct, print "No
more image in the PCI ROM" instead of looping back and printing "Invalid
PCI ROM header signature".

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/pci/rom.c