ext4: fix possible non-initialized variable in htree_dirblock_to_tree()
[firefly-linux-kernel-4.4.55.git] / fs / ext4 / namei.c
index 7450ff01c3c47d531daffae28331c0480dca964a..37c03b32e194124fbf523b017f8e23245b738547 100644 (file)
@@ -846,7 +846,7 @@ static int htree_dirblock_to_tree(struct file *dir_file,
 {
        struct buffer_head *bh;
        struct ext4_dir_entry_2 *de, *top;
-       int err, count = 0;
+       int err = 0, count = 0;
 
        dxtrace(printk(KERN_INFO "In htree dirblock_to_tree: block %lu\n",
                                                        (unsigned long)block));