GNU/Linux backend: guard writing through task_info pointer against NULL
diff --git a/sysdeps/linux-gnu/trace.c b/sysdeps/linux-gnu/trace.c
index 4a9be5d..2d948e3 100644
--- a/sysdeps/linux-gnu/trace.c
+++ b/sysdeps/linux-gnu/trace.c
@@ -737,7 +737,8 @@
 	if (event != NULL && event->type == EVENT_SYSRET) {
 		debug(1, "%d LT_EV_SYSRET", event->proc->pid);
 		event_to_queue = 0;
-		task_info->sysret = 1;
+		if (task_info != NULL)
+			task_info->sysret = 1;
 	}
 
 	switch (state) {