Skip to content
Commit 87e69873 authored by Akria Fujita's avatar Akria Fujita Committed by Theodore Ts'o
Browse files

ext4: fix smatch warning in move_extent.c's mext_replace_branches()

Commit 2147b1a6

 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: default avatarAkria Fujita <a-fujita@rs.jp.nec.com>
[ modified by tytso to make sure an ext4_error is called ]
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 524c19eb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment