From c0f01d8953b5cea420f3a720b62e664ab9de7ca1 Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Fri, 2 Jun 2006 17:02:11 +0000 Subject: Fix key generation error. --- 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 b61d79ba..6a76d132 100644 --- a/linux-core/drm_hashtab.c +++ b/linux-core/drm_hashtab.c @@ -129,7 +129,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