]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit76f835d7073c6000883a67aa6ad2a258b8b88eaf
tree5999a0984f5108e2c67ea35cc8667f44613295c2
parentfc3b021b1fac70cf12cce889e59f7d3bc1af69d7
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: f1e42f29b014 ("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