From 3092e7ec12ca07a45385a015dc6ab997770f42bb Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Tue, 6 Jun 2006 12:55:59 +0000 Subject: Hash table key generation fix. --- linux-core/drm_hashtab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-core/drm_hashtab.c b/linux-core/drm_hashtab.c index 4d2fa9ae..8fd6a348 100644 --- a/linux-core/drm_hashtab.c +++ b/linux-core/drm_hashtab.c @@ -133,7 +133,7 @@ drm_ht_just_insert_please(drm_open_hash_t *ht, drm_hash_item_t *item, do{ ret = drm_ht_insert_item(ht, item); if (ret) - item->key = item->key++ & mask; + item->key = (item->key + 1) & mask; } while(ret && (item->key != first)); if (ret) { -- cgit v1.2.3