summaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2020-09-10 11:31:13 +0200
committerRichard Weinberger <richard@nod.at>2020-10-11 23:13:27 +0200
commitd0800609136d16418f49d01098b206c0c394d147 (patch)
tree2e0f546b85fac0699366933872f5c8d5d569f49f /arch/um
parentebef8ea2ba967026192a26f4529890893919bc57 (diff)
downloadlinux-d0800609136d16418f49d01098b206c0c394d147.tar.bz2
um: time-travel: Return the sequence number in ACK messages
For external time travel, the protocol says to return the incoming sequence number in the ACK message to aid debugging, so do that. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Acked-By: Anton Ivanov <anton.ivanov@cambridgegreys.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/kernel/time.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/um/kernel/time.c b/arch/um/kernel/time.c
index c07436e89e59..3d109ff3309b 100644
--- a/arch/um/kernel/time.c
+++ b/arch/um/kernel/time.c
@@ -106,6 +106,7 @@ static void time_travel_handle_message(struct um_timetravel_msg *msg,
break;
}
+ resp.seq = msg->seq;
os_write_file(time_travel_ext_fd, &resp, sizeof(resp));
}