[PATCH 5.17 650/772] tracing: Fix return value of trace_pid_write()