Skip to content

Commit 637130b

Browse files
YueHaibinggregkh
authored andcommitted
drm/nouveau: Fix copy-paste error in nouveau_fence_wait_uevent_handler
[ Upstream commit 1eb0134 ] Like other cases, it should use rcu protected 'chan' rather than 'fence->channel' in nouveau_fence_wait_uevent_handler. Fixes: 0ec5f02 ("drm/nouveau: prevent stale fence->channel pointers, and protect with rcu") Signed-off-by: YueHaibing <[email protected]> Signed-off-by: Ben Skeggs <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent d07d4aa commit 637130b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/nouveau/nouveau_fence.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ nouveau_fence_wait_uevent_handler(struct nvif_notify *notify)
158158

159159
fence = list_entry(fctx->pending.next, typeof(*fence), head);
160160
chan = rcu_dereference_protected(fence->channel, lockdep_is_held(&fctx->lock));
161-
if (nouveau_fence_update(fence->channel, fctx))
161+
if (nouveau_fence_update(chan, fctx))
162162
ret = NVIF_NOTIFY_DROP;
163163
}
164164
spin_unlock_irqrestore(&fctx->lock, flags);

0 commit comments

Comments
 (0)