Skip to content
Snippets Groups Projects
Commit c81c1222 authored by Peter Barada's avatar Peter Barada Committed by Wolfgang Denk
Browse files

Fix hash table deletion to prevent lost entries


Use negative used value to mark deleted entry.  Search keeps probing
past deleted entries.  Adding an entry uses first deleted entry when
it hits end of probe chain.

Initially found that "ramdiskimage" and "preboot" collide modulus 347,
causing "preboot" to be inserted at idx 190, "ramdiskimage" at idx 191.
Previous to this fix when "preboot" is deleted, "ramdiskimage" is
orphaned.

Signed-off-by: default avatarPeter Barada <peter.barada@logicpd.com>
Tested-by: default avatarWolfgang Denk <wd@denx.de>
parent 5e987ddf
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment