diff options
author | Dexuan Cui <decui@microsoft.com> | 2015-12-14 16:01:58 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-03 15:07:16 -0800 |
commit | 7db755f538b093335e43b8ca81667f898ca51ede (patch) | |
tree | ab141068720557432f33d9a26f0eda579f7039cc /tools | |
parent | 61b9408bfd06779c8b2073829bf2f73a81531a99 (diff) | |
download | linux-stable-7db755f538b093335e43b8ca81667f898ca51ede.tar.gz linux-stable-7db755f538b093335e43b8ca81667f898ca51ede.tar.bz2 linux-stable-7db755f538b093335e43b8ca81667f898ca51ede.zip |
tools: hv: vss: fix the write()'s argument: error -> vss_msg
commit a689d2510f188e75391dbebacbddfd74d42f2a7e upstream.
Fix the write()'s argument in the daemon code.
Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/hv/hv_vss_daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/hv/hv_vss_daemon.c b/tools/hv/hv_vss_daemon.c index 96234b638249..5d51d6ff08e6 100644 --- a/tools/hv/hv_vss_daemon.c +++ b/tools/hv/hv_vss_daemon.c @@ -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)); |