From: Bjorn Helgaas Date: Wed, 26 Feb 2014 18:25:59 +0000 (-0700) Subject: PCI: Check IORESOURCE_UNSET before updating BAR X-Git-Tag: v3.15-rc1~143^2^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd8a4d3657c3f2cf9ce3780707be1debb8fea6e2;p=pandora-kernel.git PCI: Check IORESOURCE_UNSET before updating BAR Check to make sure we don't update a BAR with an address we haven't assigned. If we haven't assigned an address to a resource, we shouldn't write it to a BAR. This isn't a problem for the usual path via pci_assign_resource(), which clears IORESOURCE_UNSET before calling pci_update_resource(), but paths like pci_restore_bars() can call this for resources we haven't assigned. Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed