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

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

 



On Wed, Jul 11, 2012 at 06:05:28PM +0800, Dennis Chen wrote:
> 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&&

This needs to be fixed in the PHYP driver code actually. In its
phypRegister() method it should be registering a network driver
impl of its own.


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
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]