From: Akria Fujita Date: Sat, 2 Feb 2013 01:52:46 +0000 (-0500) Subject: ext4: fix smatch warning in move_extent.c's mext_replace_branches() X-Git-Tag: v3.9-rc1~64^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87e698734b9e618276c797092ccdd91da292d10e;p=pandora-kernel.git ext4: fix smatch warning in move_extent.c's mext_replace_branches() Commit 2147b1a6a48 resulted in a new smatch warning: > fs/ext4/move_extent.c:693 mext_replace_branches() > warn: variable dereferenced before check 'dext' (see line 683) Fix this by adding a check to make sure dext is non-NULL before we derefrence it. Signed-off-by: Akria Fujita [ modified by tytso to make sure an ext4_error is called ] Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed