Skip to contentSkip to conversation

s390x bugfix for 2.7-rc2

GIT PULL Applied Cornelia Huck 2 participants 3 messages Aug 8, 2016

lore
Share & tools
lore
#0 lore raw

The following changes since commit 51009170d8fc263cfdcd5a60fe3ba213daa3d15b:

tests: Rename qtests which have names ending "error" (2016-08-05 15:27:15 +0100)

are available in the git repository at:

git://github.com/cohuck/qemu tags/s390x-20160808

for you to fetch changes up to 7fc0abf4cb740609e802611690a3cdb7ff5f21bd:

s390x/pci: fix null pointer bug (2016-08-08 12:47:02 +0200)

----------------------------------------------------------------
One more s390x fix for a bug in the pci rework.

----------------------------------------------------------------

Yi Min Zhao (1):
s390x/pci: fix null pointer bug

 hw/s390x/s390-pci-bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.9.2
#1 lore raw

[Qemu-devel] [PULL for-2.7 1/1] s390x/pci: fix null pointer bug

From: Yi Min Zhao <[email protected]>

We should make sure that it's not NULL firstly.

---
 hw/s390x/s390-pci-bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/s390x/s390-pci-bus.c +1 -1
index 47ca853..9c1c04e 100644
@@ -712,7 +712,7 @@ static void s390_pcihost_hot_unplug(HotplugHandler *hotplug_dev,
         pci_dev = PCI_DEVICE(dev);
 
         for (i = 0 ; i < PCI_SLOT_MAX; i++) {
-            if (s->pbdev[i]->pdev == pci_dev) {
+            if (s->pbdev[i] && s->pbdev[i]->pdev == pci_dev) {
                 pbdev = s->pbdev[i];
                 break;
             }
Signature · 1 line
2.9.2
#2 lore raw
In reply to Cornelia Huck
Quoted 8 lines · Cornelia Huck

The following changes since commit 51009170d8fc263cfdcd5a60fe3ba213daa3d15b:

tests: Rename qtests which have names ending "error" (2016-08-05 15:27:15 +0100)

are available in the git repository at:

git://github.com/cohuck/qemu tags/s390x-20160808

Quoted 8 lines

for you to fetch changes up to 7fc0abf4cb740609e802611690a3cdb7ff5f21bd:

s390x/pci: fix null pointer bug (2016-08-08 12:47:02 +0200)

----------------------------------------------------------------
One more s390x fix for a bug in the pci rework.

----------------------------------------------------------------

Applied, thanks.

-- PMM