From: Theodore Ts'o Date: Sun, 31 Aug 2014 19:03:14 +0000 (-0400) Subject: ext4: fix ext4_swap_extents() error handling X-Git-Tag: fixes-against-v3.18-rc2~28^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19008f6dfa16d23afcd09dceaa598bb6da8de4b1;p=pandora-kernel.git ext4: fix ext4_swap_extents() error handling If ext4_ext_find_extent() returns an error, we have to clear path1 or path2 or else we would end up trying to free an ERR_PTR, which would be bad. Also eliminate some redundant code and mark the error paths as unlikely() Signed-off-by: Theodore Ts'o --- Reading git-diff-tree failed