[libvirt] [PATCH] nodedev: Fix call to virNodeDeviceObjListFree in nodeStateReload

John Ferlan posted 1 patch 6 years, 8 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20170718112542.19833-1-jferlan@redhat.com
src/node_device/node_device_hal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[libvirt] [PATCH] nodedev: Fix call to virNodeDeviceObjListFree in nodeStateReload
Posted by John Ferlan 6 years, 8 months ago
Commit id '9c5d98fd8' missed changing this call to use driver->devs
rather than @driver->devs.

Signed-off-by: John Ferlan <jferlan@redhat.com>
---

 Pushed under build breaker rule (debian-8 and centos-6)

 src/node_device/node_device_hal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/node_device/node_device_hal.c b/src/node_device/node_device_hal.c
index b220798..7f246f0 100644
--- a/src/node_device/node_device_hal.c
+++ b/src/node_device/node_device_hal.c
@@ -744,7 +744,7 @@ nodeStateReload(void)
     VIR_INFO("Reloading HAL device state");
     nodeDeviceLock();
     VIR_INFO("Removing existing objects");
-    virNodeDeviceObjListFree(&driver->devs);
+    virNodeDeviceObjListFree(driver->devs);
     nodeDeviceUnlock();
 
     hal_ctx = DRV_STATE_HAL_CTX(driver);
-- 
2.9.4

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