public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/3] tools: hv: fcopy_daemon: Don't use uninitialized variable
@ 2014-10-21 11:49 Matej Mužila
  0 siblings, 0 replies; only message in thread
From: Matej Mužila @ 2014-10-21 11:49 UTC (permalink / raw)
  To: kys, devel, linux-kernel

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)) {


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-10-21 11:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-21 11:49 [PATCH 3/3] tools: hv: fcopy_daemon: Don't use uninitialized variable Matej Mužila

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox