Skip to contentSkip to conversation

xenstore: Fix error path I broke in c/s 17816

PATCH New Christoph Egger 1 participant 1 message Jun 10, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xenstore: Fix error path I broke in c/s 17816

Hi!

Attached patch fixes error path I broke in xenstore's hash allocation (c/s 17816). Sorry for this.

Signature · 12 lines
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy
tools/xenstore/hashtable.c +2 -2
diff -r d77214a97e04 tools/xenstore/hashtable.c
@@ -57,9 +57,9 @@ create_hashtable(unsigned int minsize,
     h->loadlimit    = (unsigned int)(((uint64_t)size * max_load_factor) / 100);
     return h;
 
+err1:
+   free(h);
 err0:
-   free(h);
-err1:
    return NULL;
 }
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel