]> git.hungrycats.org Git - linux/commit
btrfs: sync ioctl, handle errors after transaction start
authorDavid Sterba <dsterba@suse.cz>
Mon, 19 Jan 2015 13:21:02 +0000 (14:21 +0100)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Fri, 23 Jan 2015 13:25:38 +0000 (08:25 -0500)
commita75f40ecb6a973d4c0196a15bf869cd895499d16
tree2afd805f5d1aa029bfee1ea957cf2d91cadf565e
parent6c59be2ec9cd6a013511d2479b8d7313084ed7f0
btrfs: sync ioctl, handle errors after transaction start

The version merged to 3.19 did not handle errors from start_trancaction
and could pass an invalid pointer to commit_transaction.

Fixes: 6b5fe46dfa52441f ("btrfs: do commit in sync_fs if there are pending changes")
Reported-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
(cherry picked from commit 98bd5c547ef2300f915fc1adce5b6f25c195d4d4)
fs/btrfs/super.c