From: Dave Airlie Date: Thu, 10 Dec 2009 05:59:32 +0000 (+1000) Subject: drm/radeon/kms: fix warning about cur_placement being uninitialised. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4361e52ad0372e6fd2240a2207b49a4de1f45ca9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/radeon/kms: fix warning about cur_placement being uninitialised. Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/radeon/radeon_gem.c b/drivers/gpu/drm/radeon/radeon_gem.c index e927f998f76f..2944486871b0 100644 --- a/drivers/gpu/drm/radeon/radeon_gem.c +++ b/drivers/gpu/drm/radeon/radeon_gem.c @@ -268,7 +268,7 @@ int radeon_gem_busy_ioctl(struct drm_device *dev, void *data, struct drm_gem_object *gobj; struct radeon_bo *robj; int r; - uint32_t cur_placement; + uint32_t cur_placement = 0; gobj = drm_gem_object_lookup(dev, filp, args->handle); if (gobj == NULL) {