mirror of https://github.com/schoebel/mars
mem: safeguard hash_fn
This commit is contained in:
parent
6b64dbb8cd
commit
0fac4a277d
|
@ -443,7 +443,7 @@ static
|
||||||
void _new_block_info(void *data, int len, int cline)
|
void _new_block_info(void *data, int len, int cline)
|
||||||
{
|
{
|
||||||
struct mem_block_info *inf;
|
struct mem_block_info *inf;
|
||||||
int hash;
|
unsigned int hash;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
@ -469,7 +469,7 @@ struct mem_block_info *_find_block_info(void *data, bool remove)
|
||||||
{
|
{
|
||||||
struct mem_block_info *res = NULL;
|
struct mem_block_info *res = NULL;
|
||||||
struct list_head *tmp;
|
struct list_head *tmp;
|
||||||
int hash = INFO_LIST_HASH(data);
|
unsigned int hash = INFO_LIST_HASH(data);
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
if (remove)
|
if (remove)
|
||||||
|
|
Loading…
Reference in New Issue