diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-04-29 15:05:58 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 15:54:27 -0700 |
commit | 85a258b70d4891a443583530f48ab734a31e2d8d (patch) | |
tree | 9a02a047442e396a163e4014467258222d696ccd /include/net/caif | |
parent | 7ebab4536958b05f65b71ec312073acf5d66578d (diff) | |
download | op-kernel-dev-85a258b70d4891a443583530f48ab734a31e2d8d.zip op-kernel-dev-85a258b70d4891a443583530f48ab734a31e2d8d.tar.gz |
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 <dan.carpenter@oracle.com>
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/net/caif')
0 files changed, 0 insertions, 0 deletions