aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Mayle <fmayle@google.com>2023-10-27 14:32:00 -0700
committerFrederick Mayle <fmayle@google.com>2023-10-27 14:32:00 -0700
commit937c6ff1b7fdbdfd66565b95cb2e37ed0277e007 (patch)
tree54a8030eb30668b4952c3d6355128c7d2c7401ed
parent51387394334843ebff79dc7db94ad19d71f98bb9 (diff)
downloadwmediumd-937c6ff1b7fdbdfd66565b95cb2e37ed0277e007.tar.gz
fix vhost-user restore implementationandroid-u-rb-dp-10-gplandroid-u-rb-dp-10-gpl
It was using the wrong union member, causing an off by one error. Somehow missed this when testing https://r.android.com/2794978, I probably forgot to rebuild before testing when doing the final polishing. Bug: 295028005 Test: do CF snapshot/restore flow with wifi enabled Change-Id: I2ff07f6f5045d875c80a37b8f15148563714c340
-rw-r--r--wmediumd/lib/vhost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wmediumd/lib/vhost.c b/wmediumd/lib/vhost.c
index 4e13012..dbb721b 100644
--- a/wmediumd/lib/vhost.c
+++ b/wmediumd/lib/vhost.c
@@ -741,7 +741,7 @@ static void usfstl_vhost_user_handle_msg(struct usfstl_loop_entry *entry)
usfstl_vhost_user_get_msg_fds(&msghdr, fds, 2);
for (virtq = 0; virtq < dev->ext.server->max_queues; virtq++) {
- const struct vring_snapshot* snapshot = &msg.payload.snapshot_response.snapshot.vrings[virtq];
+ const struct vring_snapshot* snapshot = &msg.payload.restore_request.snapshot.vrings[virtq];
dev->virtqs[virtq].enabled = snapshot->enabled;
dev->virtqs[virtq].sleeping = snapshot->sleeping;
dev->virtqs[virtq].triggered = snapshot->triggered;