commit | b9d04c607c21fafe0a346792d0d358e7ab9a768e | [log] [tgz] |
---|---|---|
author | David Sterba <dsterba@suse.com> | Fri Feb 17 19:42:43 2017 +0100 |
committer | David Sterba <dsterba@suse.com> | Tue Feb 28 14:27:11 2017 +0100 |
tree | 1f6ab876f9759503b17c6e1fa97af8c38938251e | |
parent | fa2529923d3bc5f0b39ff7a7c52be74c4aea6f2a [diff] |
btrfs: do proper error handling in btrfs_insert_xattr_item The space check in btrfs_insert_xattr_item is duplicated in it's caller (do_setxattr) so we won't hit the BUG_ON. Continuing without any check could be disasterous so turn it to a proper error handling. Reviewed-by: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>