]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: fix use of uninitialized pointer vaddr
authorColin Ian King <colin.king@canonical.com>
Fri, 31 May 2019 10:32:01 +0000 (11:32 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 31 May 2019 10:40:00 +0000 (11:40 +0100)
commit16d6180d0941a8ae463551e5bbe61d6f73835fce
treeb0ac8b7664c3cd1f34d180cc062a66aa262f6737
parente9e45f113892721c4493959f0fb2308b7f7ddc34
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: 5963d78a317b ("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
drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c