diff options
Diffstat (limited to 'drivers/char/drm/drm_hashtab.c')
-rw-r--r-- | drivers/char/drm/drm_hashtab.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/drm/drm_hashtab.c b/drivers/char/drm/drm_hashtab.c index df0c48539ca4..31acb621dcce 100644 --- a/drivers/char/drm/drm_hashtab.c +++ b/drivers/char/drm/drm_hashtab.c | |||
@@ -43,6 +43,7 @@ int drm_ht_create(drm_open_hash_t *ht, unsigned int order) | |||
43 | ht->size = 1 << order; | 43 | ht->size = 1 << order; |
44 | ht->order = order; | 44 | ht->order = order; |
45 | ht->fill = 0; | 45 | ht->fill = 0; |
46 | ht->table = NULL; | ||
46 | ht->use_vmalloc = ((ht->size * sizeof(*ht->table)) > PAGE_SIZE); | 47 | ht->use_vmalloc = ((ht->size * sizeof(*ht->table)) > PAGE_SIZE); |
47 | if (!ht->use_vmalloc) { | 48 | if (!ht->use_vmalloc) { |
48 | ht->table = drm_calloc(ht->size, sizeof(*ht->table), | 49 | ht->table = drm_calloc(ht->size, sizeof(*ht->table), |