Skip to content
Snippets Groups Projects
Commit 9b5af7af authored by Lingfeng Yang's avatar Lingfeng Yang
Browse files

goldfish_address_space: also copy back ioctl ping params to user


Otherwise it's hard to get replies from the host

Signed-off-by: default avatarLingfeng Yang <lfy@google.com>
Change-Id: I4e54003289664de19f83771fbf9655542e9918d5
parent 945e8e32
No related branches found
No related tags found
No related merge requests found
......@@ -600,6 +600,9 @@ as_ioctl_ping(struct goldfish_address_space_ping *ping_info,
as_ping_impl(state, handle);
mutex_unlock(&state->registers_lock);
if (copy_to_user(ptr, ping_info, sizeof(struct goldfish_address_space_ping)))
return -EFAULT;
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment