Whamcloud - gitweb
LU-6722 ldiskfs: fix credits at ldiskfs_delete_inode
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / rhel6.4 / ext4-fix-mbgroups-access.patch
1 Index: linux-stage/fs/ext4/mballoc.c
2 ===================================================================
3 --- linux-stage.orig/fs/ext4/mballoc.c
4 +++ linux-stage/fs/ext4/mballoc.c
5 @@ -4825,6 +4825,11 @@ do_more:
6                  * be used until this transaction is committed
7                  */
8                 new_entry = kmem_cache_alloc(ext4_free_data_cachep, GFP_NOFS);
9 +               if (!new_entry) {
10 +                       ext4_mb_release_desc(&e4b);
11 +                       err = -ENOMEM;
12 +                       goto error_return;
13 +               }
14                 new_entry->efd_start_blk = bit;
15                 new_entry->efd_group  = block_group;
16                 new_entry->efd_count = count;