提交 b72143ab 编写于 作者: T Theodore Ts'o

ext4: Add error checking to kmem_cache_alloc() call in ext4_free_blocks()

Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu>
上级 0ff2ea7d
......@@ -4626,7 +4626,11 @@ void ext4_free_blocks(handle_t *handle, struct inode *inode,
* blocks being freed are metadata. these blocks shouldn't
* be used until this transaction is committed
*/
new_entry = kmem_cache_alloc(ext4_free_ext_cachep, GFP_NOFS);
new_entry = kmem_cache_alloc(ext4_free_ext_cachep, GFP_NOFS);
if (!new_entry) {
err = -ENOMEM;
goto error_return;
}
new_entry->start_blk = bit;
new_entry->group = block_group;
new_entry->count = count;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册