[for-linus][PATCH 1/2] tracing/trigger: Fix to return error if failed to alloc snapshot