diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2015-06-03 14:09:11 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-06-05 04:00:47 +0300 |
commit | 55cc3df08a2c6a9c9c20b34ba26de0512a750b5e (patch) | |
tree | 61d56b860fdc86367b8c394a38b11eb21dc68742 /drivers/gpu/drm/qxl | |
parent | 8451cc964c1d193b989c41a44e5e77109cc696f8 (diff) | |
download | linux-55cc3df08a2c6a9c9c20b34ba26de0512a750b5e.tar.xz |
drm/qxl: Fix print statement not using uninitialized variable
reloc_info[i] is not still initialized in the print statement.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/qxl')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_ioctl.c b/drivers/gpu/drm/qxl/qxl_ioctl.c index 7354a4cda59d..9bf1368bc92c 100644 --- a/drivers/gpu/drm/qxl/qxl_ioctl.c +++ b/drivers/gpu/drm/qxl/qxl_ioctl.c @@ -212,7 +212,7 @@ static int qxl_process_single_command(struct qxl_device *qdev, /* add the bos to the list of bos to validate - need to validate first then process relocs? */ if (reloc.reloc_type != QXL_RELOC_TYPE_BO && reloc.reloc_type != QXL_RELOC_TYPE_SURF) { - DRM_DEBUG("unknown reloc type %d\n", reloc_info[i].type); + DRM_DEBUG("unknown reloc type %d\n", reloc.reloc_type); ret = -EINVAL; goto out_free_bos; |