From: Chris Mason Date: Wed, 25 Jul 2012 23:21:10 +0000 (-0400) Subject: Btrfs: uninit variable fixes in send/receive X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b24baf6917a376420d535548e1f88744028bcf24;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git Btrfs: uninit variable fixes in send/receive Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 5394cb75012..bf232c88a0b 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -2676,7 +2676,7 @@ static int process_recorded_refs(struct send_ctx *sctx) struct ulist_iterator uit; struct ulist_node *un; struct fs_path *valid_path = NULL; - u64 ow_inode; + u64 ow_inode = 0; u64 ow_gen; int did_overwrite = 0; int is_orphan = 0; @@ -3553,7 +3553,7 @@ static int send_write(struct send_ctx *sctx, u64 offset, u32 len) int ret = 0; struct fs_path *p; loff_t pos = offset; - int readed; + int readed = 0; mm_segment_t old_fs; p = fs_path_alloc(sctx);