summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-12-10 06:59:32 +0100
committerDave Airlie <airlied@redhat.com>2009-12-10 06:59:32 +0100
commit4361e52ad0372e6fd2240a2207b49a4de1f45ca9 (patch)
tree2cd3ddedf71ff0671f93dec4b8eac2fb63c2fd16 /drivers/gpu
parentMerge remote branch 'korg/drm-radeon-next' of into drm-linus (diff)
downloadlinux-4361e52ad0372e6fd2240a2207b49a4de1f45ca9.tar.xz
linux-4361e52ad0372e6fd2240a2207b49a4de1f45ca9.zip
drm/radeon/kms: fix warning about cur_placement being uninitialised.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/radeon_gem.c2
1 files changed, 1 insertions, 1 deletions
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) {