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>] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 27 May 2010 14:35:03 -0400
From:	Prarit Bhargava <prarit@...hat.com>
To:	netdev@...r.kernel.org
Cc:	Prarit Bhargava <prarit@...hat.com>
Subject: [PATCH]: niu: fix uninitialized variable warning

Fixes warning:

drivers/net/niu.c: In function ‘niu_process_rx_pkt’:
drivers/net/niu.c:3457: error: ‘link’ may be used uninitialized in this function

Signed-off-by: Prarit Bhargava <prarit@...hat.com>

diff --git a/drivers/net/niu.c b/drivers/net/niu.c
index 30abb4e..3ace57b 100644
--- a/drivers/net/niu.c
+++ b/drivers/net/niu.c
@@ -3454,7 +3454,7 @@ static int niu_process_rx_pkt(struct napi_struct *napi, struct niu *np,
 
 	num_rcr = 0;
 	while (1) {
-		struct page *page, **link;
+		struct page *page, **uninitialized_var(link);
 		u32 rcr_size, append_size;
 		u64 addr, val, off;
 
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ