]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftest/buddy: fixup igt_buddy_alloc_range
authorMatthew Auld <matthew.auld@intel.com>
Thu, 15 Aug 2019 10:32:10 +0000 (11:32 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 15 Aug 2019 12:13:23 +0000 (13:13 +0100)
commit778780a2747eedd261895fe6d371f0e9e106251b
tree8dcd5db785baa367d836febb0bef57fd4bc68bbd
parent4a9ae7cac249c6c1fdb36d9f9b91b0634f8c4c30
drm/i915/selftest/buddy: fixup igt_buddy_alloc_range

Dan reported the following static checker warning:

drivers/gpu/drm/i915/selftests/i915_buddy.c:670 igt_buddy_alloc_range()
error: we previously assumed 'block' could be null (see line 665)

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190815103210.11802-1-matthew.auld@intel.com
drivers/gpu/drm/i915/selftests/i915_buddy.c