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]
Message-ID: <04bf01c76c13$5f25ce00$eeeea8c0@aldipc>
Date:	Thu, 22 Mar 2007 00:48:05 +0100
From:	"roland" <devzero@....de>
To:	<linux-kernel@...r.kernel.org>
Subject: [PATCH] - fix compile warning: `found' might be used uninitialized in this function

Hello !

the attached patch should fix the following compile warning:

fs/block_dev.c: In function `bd_claim_by_kobject':
fs/block_dev.c:953: warning: `found' might be used uninitialized in this 
function

i`m an absolutely awful programmer , but feel free to comment, ignore or 
.... merge.

regards
Roland Kletzing


--- linux-2.6.20.3/fs/block_dev.c.orig  2007-03-22 00:07:49.270353920 +0100
+++ linux-2.6.20.3/fs/block_dev.c       2007-03-22 00:07:33.875694264 +0100
@@ -950,7 +950,7 @@
                                struct kobject *kobj)
 {
        int res;
-       struct bd_holder *bo, *found;
+       struct bd_holder *bo, *found = NULL;

        if (!kobj)
                return -EINVAL; 

-
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