[PATCH 45/49] perf: Fix task_function_call() error handling