<div dir="ltr"><div>Seems reasonable,<br><br></div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 19, 2016 at 5:02 AM, Tapani Pälli <span dir="ltr"><<a href="mailto:tapani.palli@intel.com" target="_blank">tapani.palli@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Tapani Pälli <<a href="mailto:tapani.palli@intel.com">tapani.palli@intel.com</a>><br>
---<br>
src/util/hash_table.c | 2 ++<br>
1 file changed, 2 insertions(+)<br>
<br>
diff --git a/src/util/hash_table.c b/src/util/hash_table.c<br>
index 4cfe3d9..9e643af 100644<br>
--- a/src/util/hash_table.c<br>
+++ b/src/util/hash_table.c<br>
@@ -295,6 +295,8 @@ hash_table_insert(struct hash_table *ht, uint32_t hash,<br>
uint32_t start_hash_address, hash_address;<br>
struct hash_entry *available_entry = NULL;<br>
<br>
+ assert(key != NULL);<br>
+<br>
if (ht->entries >= ht->max_entries) {<br>
_mesa_hash_table_rehash(ht, ht->size_index + 1);<br>
} else if (ht->deleted_entries + ht->entries >= ht->max_entries) {<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.7.4<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>