android_kernel_samsung_a7y1.../fs/btrfs/tests
Dan Carpenter 4a8dfaa1af btrfs: return error pointer from alloc_test_extent_buffer
[ Upstream commit b6293c821ea8fa2a631a2112cd86cd435effeb8b ]

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: faa2dbf004e8 ("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>
2020-04-07 13:22:00 +02:00
..
btrfs-tests.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
btrfs-tests.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
extent-buffer-tests.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
extent-io-tests.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
free-space-tests.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
inode-tests.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
qgroup-tests.c btrfs: return error pointer from alloc_test_extent_buffer 2020-04-07 13:22:00 +02:00