Skip to content

Commit c0a1a6d

Browse files
JunPiaoHWtorvalds
authored andcommitted
ocfs2/xattr: assign errno to 'ret' in ocfs2_calc_xattr_init()
We need catch the errno returned by ocfs2_xattr_get_nolock() and assign it to 'ret' for printing and noticing upper callers. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Jun Piao <[email protected]> Reviewed-by: Alex Chen <[email protected]> Reviewed-by: Yiwen Jiang <[email protected]> Acked-by: Gang He <[email protected]> Acked-by: Changwei Ge <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: Joel Becker <[email protected]> Cc: Junxiao Bi <[email protected]> Cc: Joseph Qi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent ff26cc1 commit c0a1a6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/ocfs2/xattr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ int ocfs2_calc_xattr_init(struct inode *dir,
646646
if (S_ISDIR(mode))
647647
a_size <<= 1;
648648
} else if (acl_len != 0 && acl_len != -ENODATA) {
649+
ret = acl_len;
649650
mlog_errno(ret);
650651
return ret;
651652
}

0 commit comments

Comments
 (0)