linux/fs/btrfs/tests
Dan Carpenter b6293c821e btrfs: return error pointer from alloc_test_extent_buffer
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>
2019-12-13 14:09:24 +01:00
..
btrfs-tests.c btrfs: rename btrfs_block_group_cache 2019-11-18 17:51:51 +01:00
btrfs-tests.h btrfs: rename btrfs_block_group_cache 2019-11-18 17:51:51 +01:00
extent-buffer-tests.c btrfs: tests: use standard error message after path allocation failure 2019-04-29 19:02:26 +02:00
extent-io-tests.c Btrfs: make test_find_first_clear_extent_bit fail on incorrect results 2019-09-09 14:59:05 +02:00
extent-map-tests.c btrfs: tests: add locks around add_extent_mapping 2019-07-01 13:35:03 +02:00
free-space-tests.c btrfs: rename btrfs_block_group_cache 2019-11-18 17:51:51 +01:00
free-space-tree-tests.c btrfs: return error pointer from alloc_test_extent_buffer 2019-12-13 14:09:24 +01:00
inode-tests.c btrfs: stop clearing EXTENT_DIRTY in inode I/O tree 2019-09-09 14:59:17 +02:00
qgroup-tests.c btrfs: return error pointer from alloc_test_extent_buffer 2019-12-13 14:09:24 +01:00