Commit fd1e194f authored by Colin Ian King's avatar Colin Ian King Committed by Chris Wilson

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: 6501aa4e ("drm/i915: add in-kernel blitter client")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190531103201.10124-1-colin.king@canonical.com
parent 1fbf9d81
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment