From patchwork Tue Jun 1 08:23:11 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 103413 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o518NuUS006094 for ; Tue, 1 Jun 2010 08:23:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755329Ab0FAIX3 (ORCPT ); Tue, 1 Jun 2010 04:23:29 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:63559 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754167Ab0FAIX1 (ORCPT ); Tue, 1 Jun 2010 04:23:27 -0400 Received: by fxm8 with SMTP id 8so674590fxm.19 for ; Tue, 01 Jun 2010 01:23:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mail-followup-to:mime-version:content-type :content-disposition:user-agent; bh=ZWZ6MbmldhRcEDU+rhbBkhTrFqoH+ROIF5OJNGsPC0g=; b=UuJR9VLqaiMBic/15fDYiIa7qng+D67dFltVOUaEvQ+/Y1wddbDlyhnemHH6lRvOyL cRoxpNML+xcRWEHoZyOXjD43M3qzTRrA06yxTIHEX8gaOWQNtNtv+rYzsFrpmt5IOwVt H7lJlSc3odvAqT91Ij3MSNZJtEm+ccElra2Ac= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mail-followup-to:mime-version :content-type:content-disposition:user-agent; b=bAkKFHMqn7ZhBG9Q//mCBw7ZSFk4lirThE84BetCYC8of8aKuTC6nxHoG1KsIEw8k9 1Xvayj4d6a5edrX7uKFlMB6SkS11Ys+FHys3HltUfxtt+XqquB2A4R49PimNSfFwsna7 yOCkr/qCaqWs1lAGud+F/GZB3t80lbhxhmqGs= Received: by 10.223.98.83 with SMTP id p19mr6663114fan.27.1275380605760; Tue, 01 Jun 2010 01:23:25 -0700 (PDT) Received: from bicker ([205.177.176.130]) by mx.google.com with ESMTPS id u12sm45989474fah.16.2010.06.01.01.23.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 01 Jun 2010 01:23:25 -0700 (PDT) Date: Tue, 1 Jun 2010 10:23:11 +0200 From: Dan Carpenter To: Chris Mason Cc: Yan Zheng , Josef Bacik , Al Viro , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [patch] btrfs: uninitialized data is check_path_shared() Message-ID: <20100601082311.GM5483@bicker> Mail-Followup-To: Dan Carpenter , Chris Mason , Yan Zheng , Josef Bacik , Al Viro , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 01 Jun 2010 08:23:56 +0000 (UTC) diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index fa6ccc1..9640dae 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -2673,7 +2673,7 @@ static int check_path_shared(struct btrfs_root *root, struct extent_buffer *eb; int level; int ret; - u64 refs; + u64 refs = 0; for (level = 0; level < BTRFS_MAX_LEVEL; level++) { if (!path->nodes[level])