[PATCH]POWER Hypervisor: Fix the segment fault issue for the "list" command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When connect to the remote IBM HMC/IVM server, the remoteNetworkOpen() called
after the phypOpen() in do_open function will re-assign a NULL pointer to the
virConnectPtr conn->networkPrivateData which is allocated in phypOpen(), this
will result in a segment fault issue when execute the following commands,
eg, "virsh# list --all"

Signed-off-by: Dennis Chen<dennis.chen@xxxxxxxxxxxxx>
---
 src/remote/remote_driver.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index eac50e6..22ef129 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -2504,7 +2504,8 @@ static virDrvOpenStatus ATTRIBUTE_NONNULL (1)
 remoteGenericOpen(virConnectPtr conn, virConnectAuthPtr auth,
                   unsigned int flags, void **genericPrivateData)
 {
-    if (inside_daemon)
+    if (inside_daemon ||
+       STREQ (conn->driver->name, "PHYP"))
         return VIR_DRV_OPEN_DECLINED;

     if (conn->driver&&

BRs,
Dennis


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]