Re: [PATCH] storage: fix build with iscsi

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

 



On 04/30/2012 12:38 PM, Eric Blake wrote:
The previous storage patch missed an instance affected by the struct
member rename.


@@ -589,11 +589,13 @@ virStorageBackendISCSIFindPoolSources(virConnectPtr conn ATTRIBUTE_UNUSED,
      }

      for (i = 0 ; i<  ntargets ; i++) {
-        if (VIR_ALLOC_N(list.sources[i].devices, 1)<  0) {
+        if (VIR_ALLOC_N(list.sources[i].devices, 1)<  0 ||
+            VIR_ALLOC_N(list.sources[i].hosts, 1)) {

Nit: '< 0'.


    Stefan

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