From: Al Viro Date: Thu, 18 Jun 2015 20:05:18 +0000 (-0400) Subject: ufs_trunc_branch(): never call with offsets != NULL && depth2 == 0 X-Git-Tag: omap-for-v4.3/fixes-rc1~80^2~5^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97e0f8f87c918620689ce542664a3115b752649d;p=pandora-kernel.git ufs_trunc_branch(): never call with offsets != NULL && depth2 == 0 For calls in __ufs_truncate_blocks() it's just a matter of not incrementing offsets[0] and not making that call - immediately following loop will be executed one extra time and we'll be just fine. For recursive call in ufs_trunc_branch() itself, just assing NULL to offsets if we would be about to make such call. Signed-off-by: Al Viro --- Reading git-diff-tree failed