lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <5446485D.7000708@redhat.com>
Date:	Tue, 21 Oct 2014 13:49:49 +0200
From:	Matej Mužila <mmuzila@...hat.com>
To:	kys@...rosoft.com, devel@...uxdriverproject.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH 3/3] tools: hv: fcopy_daemon: Don't use uninitialized variable

From: Matej Mužila <mmuzila@...hat.com>

Don't use uninitialized variable

Signed-off-by: Matej Mužila <mmuzila@...hat.com>
Acked-by:  K. Y. Srinivasan <kys@...rosoft.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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ