Skip to content

Commit 88b0639

Browse files
committed
Merge tag 'for-5.13-rc1-part2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
Pull btrfs fix from David Sterba: "Handle transaction start error in btrfs_fileattr_set() This is fix for code introduced by the new fileattr merge" * tag 'for-5.13-rc1-part2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux: btrfs: handle transaction start error in btrfs_fileattr_set
2 parents 1140ab5 + 9b8a233 commit 88b0639

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/btrfs/ioctl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ int btrfs_fileattr_set(struct user_namespace *mnt_userns,
259259
if (!fa->flags_valid) {
260260
/* 1 item for the inode */
261261
trans = btrfs_start_transaction(root, 1);
262+
if (IS_ERR(trans))
263+
return PTR_ERR(trans);
262264
goto update_flags;
263265
}
264266

0 commit comments

Comments
 (0)