[PATCH 2/2] um: time-travel: return the sequence number in ACK messages

Johannes Berg johannes at sipsolutions.net
Thu Sep 10 05:29:45 EDT 2020


From: Johannes Berg <johannes.berg at intel.com>

For external time travel, the protocol says to return the
incoming sequence number in the ACK message to aid debugging,
so do that.

Change-Id: Ib2bcca1371247b2f8643f35fb85ca5051addd8cc
Signed-off-by: Johannes Berg <johannes.berg at intel.com>
---
 arch/um/kernel/time.c | 1 +
 1 file changed, 1 insertion(+)

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));
 }
 
-- 
2.26.2




More information about the linux-um mailing list