From: Dave Chinner Date: Thu, 14 Jan 2010 08:44:46 +0000 (+0000) Subject: xfs: fix missing error check in xfs_rtfree_range X-Git-Tag: v2.6.33-rc5~22^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3daeb42c13567e1505f233f6a699cc0e23c8ab5a;p=pandora-kernel.git xfs: fix missing error check in xfs_rtfree_range When xfs_rtfind_forw() returns an error, the block is returned uninitialised. xfs_rtfree_range() is not checking the error return, so could be using an uninitialised block number for modifying bitmap summary info. The problem was found by gcc when compiling the *userspace* libxfs code - it is an copy of the kernel code with the exact same bug. gcc gives an uninitialised variable warning on the userspace code but not on the kernel code. You gotta love the consistency (Mmmm, slightly chewy today!). Signed-off-by: Dave Chinner Signed-off-by: Alex Elder --- Reading git-diff-tree failed