diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-06-10 12:10:54 -0700 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-06-12 15:57:16 -0700 |
commit | eb41ce1b012f24fc7cba664dcc12129342e26843 (patch) | |
tree | f4115acb7fb1da2c84d759bd2919ac2892cd4d0f /src/util/hash_table.h | |
parent | c129cb38613be79198ff57987d5b419f8b04973d (diff) |
util/hash_table: Properly handle the NULL key in hash_table_u64
The hash_table_u64 should support any uint64_t as input. It does
special handling for the "deleted" key, storing the data in the table
itself; do the same for the "freed" key.
Fixes: b38dab101ca "util/hash_table: Assert that keys are not reserved pointers"
Reviewed-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/util/hash_table.h')
-rw-r--r-- | src/util/hash_table.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/hash_table.h b/src/util/hash_table.h index c808a06d428..be7b50ff1fe 100644 --- a/src/util/hash_table.h +++ b/src/util/hash_table.h @@ -173,6 +173,7 @@ hash_table_call_foreach(struct hash_table *ht, */ struct hash_table_u64 { struct hash_table *table; + void *freed_key_data; void *deleted_key_data; }; |