Commit 7ebab453 authored by Wei Yongjun's avatar Wei Yongjun Committed by Linus Torvalds

ocfs2: fix error return code in ocfs2_info_handle_freefrag()

Fix to return a negative error code from the error handling case instead
of 0, as returned elsewhere in this function.
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b3e0767a
...@@ -706,8 +706,10 @@ int ocfs2_info_handle_freefrag(struct inode *inode, ...@@ -706,8 +706,10 @@ int ocfs2_info_handle_freefrag(struct inode *inode,
o2info_set_request_filled(&oiff->iff_req); o2info_set_request_filled(&oiff->iff_req);
if (o2info_to_user(*oiff, req)) if (o2info_to_user(*oiff, req)) {
status = -EFAULT;
goto bail; goto bail;
}
status = 0; status = 0;
bail: bail:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment