OSDN Git Service

PCI: Make pci_size() return real BAR size
authorDu Changbin <changbin.du@gmail.com>
Sat, 13 Oct 2018 00:49:19 +0000 (08:49 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 30 Jan 2019 16:44:18 +0000 (10:44 -0600)
commit01b37f851ca150554496fd6e79c6d9a67992a2c0
tree61688a67f0f54a5070e4cec064baebfc682fbb0b
parent51c48b310183ab6ba5419edfc6a8de889cc04521
PCI: Make pci_size() return real BAR size

Currently, the pci_size() function actually returns 'size-1'.  Make it
return real size to avoid confusion.

Signed-off-by: Du Changbin <changbin.du@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/probe.c