From 85a258b70d4891a443583530f48ab734a31e2d8d Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Mon, 29 Apr 2013 15:05:58 -0700 Subject: [PATCH] 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-format-patch failed