summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas@tungstengraphics.com>2006-06-06 12:55:59 +0000
committerThomas Hellstrom <thomas@tungstengraphics.com>2006-06-06 12:55:59 +0000
commit3092e7ec12ca07a45385a015dc6ab997770f42bb (patch)
treeaa075ac06380d1fc9015ba75bb925ad3fc42a265
parente25835e9eec31d7f96602292a1ca8b94237551a9 (diff)
Hash table key generation fix.
-rw-r--r--linux-core/drm_hashtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_hashtab.c b/linux-core/drm_hashtab.c
index 4d2fa9ae3..8fd6a3486 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) {