]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/drm/drm_hashtab.c
drm: add missing NULL assignment
[linux-2.6-omap-h63xx.git] / drivers / char / drm / drm_hashtab.c
index df0c48539ca451f58dcc28fb2a8ea2e6a1ab6fb5..31acb621dcce1e4fd813b0422b8afefb339d53fe 100644 (file)
@@ -43,6 +43,7 @@ int drm_ht_create(drm_open_hash_t *ht, unsigned int order)
        ht->size = 1 << order;
        ht->order = order;
        ht->fill = 0;
+       ht->table = NULL;
        ht->use_vmalloc = ((ht->size * sizeof(*ht->table)) > PAGE_SIZE);
        if (!ht->use_vmalloc) {
                ht->table = drm_calloc(ht->size, sizeof(*ht->table),