diff options
author | Thomas Hellstrom <thomas@tungstengraphics.com> | 2006-06-02 17:02:11 +0000 |
---|---|---|
committer | Thomas Hellstrom <thomas@tungstengraphics.com> | 2006-06-02 17:02:11 +0000 |
commit | c0f01d8953b5cea420f3a720b62e664ab9de7ca1 (patch) | |
tree | 21f0b1fe54f35ac6f07404dc5b43923392592d62 | |
parent | fa3ac534a8ebbe2cbf012b38636faabdcc107699 (diff) |
Fix key generation error.
-rw-r--r-- | linux-core/drm_hashtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |