ocfs2: fix uninitialized variable access
[linux-2.6-block.git] / fs / ocfs2 / file.c
index 3950693dd0f6d9026587ac71e85037c555790f77..245db4f504dab424b6e7f7c7239790df42bf743e 100644 (file)
@@ -569,7 +569,7 @@ static int __ocfs2_extend_allocation(struct inode *inode, u32 logical_start,
        handle_t *handle = NULL;
        struct ocfs2_alloc_context *data_ac = NULL;
        struct ocfs2_alloc_context *meta_ac = NULL;
-       enum ocfs2_alloc_restarted why;
+       enum ocfs2_alloc_restarted why = RESTART_NONE;
        struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
        struct ocfs2_extent_tree et;
        int did_quota = 0;