lkml.org 
[lkml]   [2014]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 3/3] tools: hv: fcopy_daemon: Don't use uninitialized variable
From: Matej Mužila <mmuzila@redhat.com>

Don't use uninitialized variable

Signed-off-by: Matej Mužila <mmuzila@redhat.com>
Acked-by: K. Y. Srinivasan <kys@microsoft.com>
---
diff --git a/tools/hv/hv_fcopy_daemon.c b/tools/hv/hv_fcopy_daemon.c
index 1fc2dc2..0f8f918 100644
--- a/tools/hv/hv_fcopy_daemon.c
+++ b/tools/hv/hv_fcopy_daemon.c
@@ -191,7 +191,7 @@ int main(void)
default:
syslog(LOG_ERR, "Unknown operation: %d",
in_msg->operation);
-
+ error = HV_ERROR_NOT_SUPPORTED;
}

if (pwrite(fcopy_fd, &error, sizeof(int), 0) != sizeof(int)) {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2014-10-21 14:01    [W:0.028 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site