summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-02-18 08:23:11 +0100
committerDave Airlie <airlied@linux.ie>2007-03-11 02:07:17 +0100
commitc1185ccdfb797df82fa84b581eea128041bd63b0 (patch)
treee0b0b6c1561a8fd81cfeca1f29d40af5ec71eadd /drivers
parentdrm/radeon: Fix u32 overflows when determining AGP base address in card space. (diff)
downloadlinux-c1185ccdfb797df82fa84b581eea128041bd63b0.tar.xz
linux-c1185ccdfb797df82fa84b581eea128041bd63b0.zip
drm: add missing NULL assignment
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/drm/drm_hashtab.c1
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)
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),