Commit 7ebab4536958b05f65b71ec312073acf5d66578d

Authored by Wei Yongjun
Committed by Linus Torvalds
1 parent b3e0767abc

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: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff

... ... @@ -706,8 +706,10 @@
706 706  
707 707 o2info_set_request_filled(&oiff->iff_req);
708 708  
709   - if (o2info_to_user(*oiff, req))
  709 + if (o2info_to_user(*oiff, req)) {
  710 + status = -EFAULT;
710 711 goto bail;
  712 + }
711 713  
712 714 status = 0;
713 715 bail: