kcsan: Fix function matching in report
authorMarco Elver <elver@google.com>
Fri, 10 Apr 2020 16:44:17 +0000 (18:44 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 14 Apr 2020 00:18:15 +0000 (17:18 -0700)
commitf770ed10a9ee65529f3ec8d90eb374bbd8b7c238
treeed0c9ea7cdc75115102608751f89235f9831c59b
parentd071e91361bbfef524ae8abf7e560fb294d0ad64
kcsan: Fix function matching in report

Pass string length as returned by scnprintf() to strnstr(), since
strnstr() searches exactly len bytes in haystack, even if it contains a
NUL-terminator before haystack+len.

Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/kcsan/report.c