Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932763AbbFSUno (ORCPT ); Fri, 19 Jun 2015 16:43:44 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51847 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932602AbbFSUmn (ORCPT ); Fri, 19 Jun 2015 16:42:43 -0400 From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chris Mason Subject: [PATCH 4.0 104/105] Btrfs: fix uninit variable in clone ioctl Date: Fri, 19 Jun 2015 13:36:34 -0700 Message-Id: <20150619203601.300889761@linuxfoundation.org> X-Mailer: git-send-email 2.4.4 In-Reply-To: <20150619203558.187802739@linuxfoundation.org> References: <20150619203558.187802739@linuxfoundation.org> User-Agent: quilt/0.64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 964 Lines: 35 4.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Chris Mason commit de249e66a73d696666281cd812087979c6fae552 upstream. Commit 0d97a64e0 creates a new variable but doesn't always set it up. This puts it back to the original method (key.offset + 1) for the cases not covered by Filipe's new logic. Signed-off-by: Chris Mason Signed-off-by: Greg Kroah-Hartman --- fs/btrfs/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -3206,7 +3206,7 @@ static int btrfs_clone(struct inode *src key.offset = off; while (1) { - u64 next_key_min_offset; + u64 next_key_min_offset = key.offset + 1; /* * note the key will change type as we walk through the -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/