]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/btrfs/extent_io.c
btrfs: check NULL or not
[karo-tx-linux.git] / fs / btrfs / extent_io.c
index f1d1981289599b561e01eeecd8b1f48c7e44df60..8b8d3d99ae68cbaa09a3369633bf7c2f48c9f3d7 100644 (file)
@@ -3075,6 +3075,8 @@ static struct extent_buffer *__alloc_extent_buffer(struct extent_io_tree *tree,
 #endif
 
        eb = kmem_cache_zalloc(extent_buffer_cache, mask);
+       if (eb == NULL)
+               return NULL;
        eb->start = start;
        eb->len = len;
        spin_lock_init(&eb->lock);