diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-05-31 12:32:01 +0200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-05-31 12:40:00 +0200 |
commit | fd1e194f4869dca12ee0cba7c25621d436030a9e (patch) | |
tree | b0ac8b7664c3cd1f34d180cc062a66aa262f6737 | |
parent | drm/i915: Make default value for i915.mmio_debug a compile time option (diff) | |
download | linux-fd1e194f4869dca12ee0cba7c25621d436030a9e.tar.xz linux-fd1e194f4869dca12ee0cba7c25621d436030a9e.zip |
drm/i915: fix use of uninitialized pointer vaddr
The assignment of err is using the incorrect pointer vaddr that has
not been initialized. Fix this by using the correct pointer obj instead.
Addresses-Coverity: ("Uninitialized pointer read")
Fixes: 6501aa4e3a45 ("drm/i915: add in-kernel blitter client")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190531103201.10124-1-colin.king@canonical.com
-rw-r--r-- | drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c b/drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c index 8de568d2c792..e23d8c9e9298 100644 --- a/drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c +++ b/drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c @@ -32,7 +32,7 @@ static int igt_fill_blt(void *arg) obj = i915_gem_object_create_internal(i915, sz); if (IS_ERR(obj)) { - err = PTR_ERR(vaddr); + err = PTR_ERR(obj); goto err_flush; } |