Commit d46a05ed authored by David Sterba's avatar David Sterba

btrfs: tests: handle fs_info allocation failure in extent_io tests

Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 75391f0d
......@@ -392,6 +392,10 @@ static int test_eb_bitmaps(u32 sectorsize, u32 nodesize)
? sectorsize * 4 : sectorsize;
fs_info = btrfs_alloc_dummy_fs_info(len, len);
if (!fs_info) {
test_err("could not allocate fs_info");
return -ENOMEM;
}
bitmap = kmalloc(len, GFP_KERNEL);
if (!bitmap) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment