[PATCH] ext4: fix using uninitialized variable

From: Lukas Czerner
Date: Mon Nov 01 2010 - 10:44:54 EST


The ret variable might be used uninitialized. Fix this by initializing
it in definition.

Signed-off-by: "Lukas Czerner" <lczerner@xxxxxxxxxx>
Reported-by: "Stefan Richter" <stefanr@xxxxxxxxxxxxxxxxx>
---
fs/ext4/super.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 8d1d942..aff17cf 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -2699,7 +2699,7 @@ static int ext4_lazyinit_thread(void *arg)
struct ext4_li_request *elr;
unsigned long next_wakeup;
DEFINE_WAIT(wait);
- int ret;
+ int ret = 0;

BUG_ON(NULL == eli);

--
1.7.2.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/