drm/nouveau: fix dma syncing for loops (v2)
authorDave Airlie <airlied@redhat.com>
Thu, 11 Mar 2021 04:35:27 +0000 (14:35 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 12 Mar 2021 01:21:47 +0000 (11:21 +1000)
commit4042160c2e5433e0759782c402292a90b5bf458d
tree5999a0984f5108e2c67ea35cc8667f44613295c2
parenta829f033e966d5e4aa27c3ef2b381f51734e4a7f
drm/nouveau: fix dma syncing for loops (v2)

The index variable should only be increased in one place.

Noticed this while trying to track down another oops.

v2: use while loop.

Fixes: f295c8cfec83 ("drm/nouveau: fix dma syncing warning with debugging on.")
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210311043527.5376-1-airlied@gmail.com
drivers/gpu/drm/nouveau/nouveau_bo.c