X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=drivers%2Fgpu%2Fdrm%2Fttm%2Fttm_device.c;h=519deea8e39b76fb28013be05648649b8ac5abf9;hb=d842bc6c0579ca7643eed029beabab3ac562a335;hp=5f31acec3ad76b9914b5a2f4eac95c727a1de155;hpb=1e16624d7b4376797ede36e3c955375cf0f23298;p=linux-2.6-microblaze.git diff --git a/drivers/gpu/drm/ttm/ttm_device.c b/drivers/gpu/drm/ttm/ttm_device.c index 5f31acec3ad7..519deea8e39b 100644 --- a/drivers/gpu/drm/ttm/ttm_device.c +++ b/drivers/gpu/drm/ttm/ttm_device.c @@ -100,6 +100,8 @@ static int ttm_global_init(void) debugfs_create_atomic_t("buffer_objects", 0444, ttm_debugfs_root, &glob->bo_count); out: + if (ret) + --ttm_glob_use_count; mutex_unlock(&ttm_global_mutex); return ret; }