From: Dan Carpenter Date: Mon, 29 Apr 2013 22:05:58 +0000 (-0700) Subject: ocfs2: fix error handling in ocfs2_ioctl_move_extents() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~128^2~129 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85a258b70d4891a443583530f48ab734a31e2d8d;p=pandora-kernel.git ocfs2: fix error handling in ocfs2_ioctl_move_extents() Smatch complains that if we hit an error (for example if the file is immutable) then "range" has uninitialized stack data and we copy it to the user. I've re-written the error handling to avoid this problem and make it a little cleaner as well. Signed-off-by: Dan Carpenter Signed-off-by: Jie Liu Reviewed-by: Jie Liu Cc: Mark Fasheh Cc: Joel Becker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed