]> git.baikalelectronics.ru Git - kernel.git/commit
bus: mvebu-mbus: Fix optional pcie-mem/io-aperture properties
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Tue, 17 Sep 2013 20:11:04 +0000 (14:11 -0600)
committerJason Cooper <jason@lakedaemon.net>
Tue, 1 Oct 2013 17:04:17 +0000 (17:04 +0000)
commit6be4b518ae14e32c15084561af0ad09090ba26a9
tree8002c1eca37a2ad3f6a92c53be2ad9fe99b02999
parent0801d768697615791211abef5836027b179e4e05
bus: mvebu-mbus: Fix optional pcie-mem/io-aperture properties

If the property was not specified then the returned resource had a
resource_size(..) == 1, rather than 0. The PCI-E driver checks for 0 so it
blindly continues on with a corrupted resource.

The regression was introduced into v3.12 by:

  2c93de5 PCI: mvebu: Adapt to the new device tree layout

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/bus/mvebu-mbus.c