]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix off-by-one in reporting hanging process
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 15 Mar 2019 16:39:33 +0000 (16:39 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 18 Mar 2019 20:59:30 +0000 (13:59 -0700)
commit794c30a964ae2a74c843bc4e5aeab2c647823eb2
tree6900379c0d1934527ded6318bf7c7d3edd423b2c
parenta76f77ca27fcebce94d224b0a010d4245a34eb7f
drm/i915: Fix off-by-one in reporting hanging process

ffs() is 1-indexed, but we want to use it as an index into an array, so
use __ffs() instead.

Fixes: 7fe69b86c5d0 ("drm/i915: Remove GPU reset dependence on struct_mutex")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190315163933.19352-1-chris@chris-wilson.co.uk
(cherry picked from commit 9073e5b26743b8b675cc44a9c0c8f8c3d584e1c0)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/i915_gpu_error.c