]> Git Repo - linux.git/commit
ocfs2: fix error handling in ocfs2_ioctl_move_extents()
authorDan Carpenter <[email protected]>
Mon, 29 Apr 2013 22:05:58 +0000 (15:05 -0700)
committerLinus Torvalds <[email protected]>
Mon, 29 Apr 2013 22:54:27 +0000 (15:54 -0700)
commit85a258b70d4891a443583530f48ab734a31e2d8d
tree9a02a047442e396a163e4014467258222d696ccd
parent7ebab4536958b05f65b71ec312073acf5d66578d
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 <[email protected]>
Signed-off-by: Jie Liu <[email protected]>
Reviewed-by: Jie Liu <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ocfs2/move_extents.c
This page took 0.049435 seconds and 4 git commands to generate.