um: time-travel: Return the sequence number in ACK messages
authorJohannes Berg <johannes.berg@intel.com>
Thu, 10 Sep 2020 09:31:13 +0000 (11:31 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 11 Oct 2020 21:13:27 +0000 (23:13 +0200)
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>
arch/um/kernel/time.c

index c07436e..3d109ff 100644 (file)
@@ -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));
 }