]> err.no Git - linux-2.6/commitdiff
drm: add missing NULL assignment
authorDave Airlie <airlied@linux.ie>
Sun, 18 Feb 2007 07:23:11 +0000 (18:23 +1100)
committerDave Airlie <airlied@linux.ie>
Sun, 11 Mar 2007 01:07:17 +0000 (12:07 +1100)
Signed-off-by: Dave Airlie <airlied@linux.ie>
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),