From: Peter Dinda Date: Wed, 1 Jul 2015 22:37:52 +0000 (-0500) Subject: Cleanup based on cppcheck pass (VNET) X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=9f0767d0d4beb2282db360126cfc15ace453ef32 Cleanup based on cppcheck pass (VNET) --- diff --git a/palacios/src/vnet/vnet_hashtable.c b/palacios/src/vnet/vnet_hashtable.c index 0da81bd..08c14c5 100644 --- a/palacios/src/vnet/vnet_hashtable.c +++ b/palacios/src/vnet/vnet_hashtable.c @@ -196,6 +196,10 @@ struct hashtable * vnet_create_htable(uint_t min_size, } } + if (prime_index==prime_table_length) { + return NULL; + } + htable = (struct hashtable *)Vnet_Malloc(sizeof(struct hashtable)); if (htable == NULL) {