mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
tools: hv: vss: fix the write()'s argument: error -> vss_msg
Fix the write()'s argument in the daemon code. Cc: Vitaly Kuznetsov <[email protected]> Cc: "K. Y. Srinivasan" <[email protected]> Signed-off-by: Dexuan Cui <[email protected]> Cc: [email protected] Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
2d0c3b5ad7
commit
a689d2510f
1 changed files with 1 additions and 1 deletions
|
|
@ -254,7 +254,7 @@ int main(int argc, char *argv[])
|
|||
syslog(LOG_ERR, "Illegal op:%d\n", op);
|
||||
}
|
||||
vss_msg->error = error;
|
||||
len = write(vss_fd, &error, sizeof(struct hv_vss_msg));
|
||||
len = write(vss_fd, vss_msg, sizeof(struct hv_vss_msg));
|
||||
if (len != sizeof(struct hv_vss_msg)) {
|
||||
syslog(LOG_ERR, "write failed; error: %d %s", errno,
|
||||
strerror(errno));
|
||||
|
|
|
|||
Loading…
Reference in a new issue