linux-uconsole/fs/btrfs/tests
Dan Carpenter c016016118 btrfs: return error pointer from alloc_test_extent_buffer
[ Upstream commit b6293c821e ]

Callers of alloc_test_extent_buffer have not correctly interpreted the
return value as error pointer, as alloc_test_extent_buffer should behave
as alloc_extent_buffer. The self-tests were unaffected but
btrfs_find_create_tree_block could call both functions and that would
cause problems up in the call chain.

Fixes: faa2dbf004 ("Btrfs: add sanity tests for new qgroup accounting code")
CC: stable@vger.kernel.org # 4.4+
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-31 16:36:20 +01:00
..
btrfs-tests.c btrfs: Make btrfs_init_dummy_trans initialize trans' fs_info field 2018-05-28 18:07:32 +02:00
btrfs-tests.h btrfs: tests: drop newline from test_msg strings 2018-05-29 18:12:52 +02:00
extent-buffer-tests.c btrfs: tests: drop newline from test_msg strings 2018-05-29 18:12:52 +02:00
extent-io-tests.c btrfs: tests: drop newline from test_msg strings 2018-05-29 18:12:52 +02:00
extent-map-tests.c btrfs: tests: drop newline from test_msg strings 2018-05-29 18:12:52 +02:00
free-space-tests.c btrfs: tests: drop newline from test_msg strings 2018-05-29 18:12:52 +02:00
free-space-tree-tests.c btrfs: return error pointer from alloc_test_extent_buffer 2019-12-31 16:36:20 +01:00
inode-tests.c btrfs: tests: drop newline from test_msg strings 2018-05-29 18:12:52 +02:00
qgroup-tests.c btrfs: return error pointer from alloc_test_extent_buffer 2019-12-31 16:36:20 +01:00