check: Suppress kmemleak scanning failures
PATCH 1/1 check: Suppress kmemleak scanning failures
kmemleak disables itself if an internal error has been encountered. If this happens, any attempt to write into /sys/kernel/debug/kmemleak triggers the error "Operation not permitted". Suppress this error message instead of displaying it on stdout.
Signed-off-by Bart Van Assche <[email protected]>
--- check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
check +1 -1
@@ -233,7 +233,7 @@ _check_kmemleak() { ((KMEMLEAK)) || return 0 - echo scan > "$KMEMLEAK_FILE" + { echo scan > "$KMEMLEAK_FILE"; } 2>/dev/null || return 0 sleep 1 kmemleak=$(cat "$KMEMLEAK_FILE")
Quoted 6 lines · Bart Van Assche
kmemleak disables itself if an internal error has been encountered. If this happens, any attempt to write into
/sys/kernel/debug/kmemleaktriggers the error "Operation not permitted". Suppress this error message instead of displaying it on stdout.Signed-off-by Bart Van Assche <[email protected]>
Thanks, I applied this patch.