LKML Archive on
help / color / mirror / Atom feed
* [PATCH] VFS: initlalise found in fs/block_dev.c:bd_claim_by_kobject()
@ 2007-02-14  5:35 Simon Horman
  0 siblings, 0 replies; only message in thread
From: Simon Horman @ 2007-02-14  5:35 UTC (permalink / raw)
  To: Alexander Viro; +Cc: linux-kernel

The patch below fixes the following warning, which
by my reckoning is valid, though perhaps not
something that happens in practice.

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

Patch is against the current Linus tree,
33e563c1190c26b6bf61990c505cdcb5cdbba7e4. 2.6.20+

Signed-off-by: Simon Horman <>

Index: linux-2.6/fs/block_dev.c
--- linux-2.6.orig/fs/block_dev.c	2007-02-14 13:31:48.000000000 +0900
+++ linux-2.6/fs/block_dev.c	2007-02-14 13:32:04.000000000 +0900
@@ -950,7 +950,7 @@
 				struct kobject *kobj)
 	int res;
-	struct bd_holder *bo, *found;
+	struct bd_holder *bo, *found = NULL;
 	if (!kobj)
 		return -EINVAL;

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

only message in thread, other threads:[~2007-02-14  7:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-14  5:35 [PATCH] VFS: initlalise found in fs/block_dev.c:bd_claim_by_kobject() Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).