From 11f193fa874dc995a499601aa32b33938dc7fbeb Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Marcin=20Ko=C5=9Bcielnicki?= Date: Tue, 29 Sep 2009 23:50:16 +0200 Subject: [PATCH] drm/nouveau: fix missized allocation for ttm_bo_global struct --- drivers/gpu/drm/nouveau/nouveau_ttm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_ttm.c b/drivers/gpu/drm/nouveau/nouveau_ttm.c index 352f04d..7818981 100644 --- a/drivers/gpu/drm/nouveau/nouveau_ttm.c +++ b/drivers/gpu/drm/nouveau/nouveau_ttm.c @@ -103,7 +103,7 @@ nouveau_ttm_global_init(struct drm_nouveau_private *dev_priv) dev_priv->ttm.bo_global_ref.mem_glob = global_ref->object; global_ref = &dev_priv->ttm.bo_global_ref.ref; global_ref->global_type = TTM_GLOBAL_TTM_BO; - global_ref->size = sizeof(struct ttm_mem_global); + global_ref->size = sizeof(struct ttm_bo_global); global_ref->init = &ttm_bo_global_init; global_ref->release = &ttm_bo_global_release; -- 1.6.0.4