OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75391f0
)
btrfs: tests: handle fs_info allocation failure in extent_io tests
author
David Sterba
<dsterba@suse.com>
Fri, 15 Mar 2019 15:43:11 +0000
(16:43 +0100)
committer
David Sterba
<dsterba@suse.com>
Mon, 29 Apr 2019 17:02:24 +0000
(19:02 +0200)
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tests/extent-io-tests.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/tests/extent-io-tests.c
b/fs/btrfs/tests/extent-io-tests.c
index
e46ed29
..
74f69df
100644
(file)
--- a/
fs/btrfs/tests/extent-io-tests.c
+++ b/
fs/btrfs/tests/extent-io-tests.c
@@
-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) {