drm/radeon/kms: fix warning about cur_placement being uninitialised.
authorDave Airlie <airlied@redhat.com>
Thu, 10 Dec 2009 05:59:32 +0000 (15:59 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 10 Dec 2009 05:59:32 +0000 (15:59 +1000)
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_gem.c

index e927f998f76f06be61ecd9d4ac3301c82e16c847..2944486871b04c0968a88da9e298d487c5ca9f7e 100644 (file)
@@ -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) {