summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-12-10 05:59:32 (GMT)
committerDave Airlie <airlied@redhat.com>2009-12-10 05:59:32 (GMT)
commit4361e52ad0372e6fd2240a2207b49a4de1f45ca9 (patch)
tree2cd3ddedf71ff0671f93dec4b8eac2fb63c2fd16 /drivers/gpu
parent115a5c2ba0aac55e1bac390f271c818c3cbfa1fb (diff)
downloadlinux-4361e52ad0372e6fd2240a2207b49a4de1f45ca9.tar.xz
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 e927f99..2944486 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) {