Created attachment 180764 [details] git patch We have found and fixed a bug using PVS-Studio tool. PVS-Studio is a static code analyzer for C, C++ and C#: https://www.viva64.com/en/pvs-studio/ Analyzer warning: V517 The use of 'if (A) {...} else if (A) {...}' pattern was detected. There is a probability of logical error presence. Check lines: 102, 109. dtrace_debug.c 102
A commit references this bug: Author: markj Date: Mon Mar 13 18:43:00 UTC 2017 New revision: 315208 URL: https://svnweb.freebsd.org/changeset/base/315208 Log: Fix a backwards comparison in the code to dump a DTrace debug buffer. PR: 217739 MFC after: 1 week Changes: head/sys/cddl/dev/dtrace/dtrace_debug.c
I MFCed this to stable/11 in r316712 but forgot to tag the PR.