NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/61131: drm: fence indexing typo



>Number:         61131
>Category:       kern
>Synopsis:       drm: fence indexing typo
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 05 05:25:00 +0000 2026
>Originator:     Taylor R Campbell
>Release:        current, 11, 10
>Organization:
The FenceBSD Indexing, Inc.
>Environment:
>Description:
    950 	/*
    951 	 * Test whether any of the fences has been signalled.  If they
    952 	 * have, return success.
    953 	 */
    954 	for (j = 0; j < nfences; j++) {
==> 955 		if (dma_fence_is_signaled(fences[i])) {
    956 			if (ip)
    957 				*ip = j;
    958 			ret = MAX(1, timeout);
    959 			goto out;
    960 		}
    961 	}

https://nxr.netbsd.org/xref/src/sys/external/bsd/drm2/linux/linux_dma_fence.c?r=1.42#950

Reported by D Benali.
>How-To-Repeat:
use amdgpu, probably
>Fix:
fences[j], not fences[i]




Home | Main Index | Thread Index | Old Index