<[email protected]>
Subject: [PATCH RHEL7 COMMIT] ext4: ext4_ext_drop_refs ignode null path

The commit is pushed to "branch-rh7-3.10.0-123.1.2-ovz" and will appear at 
https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-123.1.2.vz7.5.24
------>
commit ac04da5243e4332c40c3cba06704226a0c005f4e
Author: Dmitry Monakhov <[email protected]>
Date:   Mon Jul 6 17:57:33 2015 +0400

    ext4: ext4_ext_drop_refs ignode null path
    
    This hank was part of following patch
    [RH7 PATCH 10/10] ext4: update defragmentation codebase
    Date: Thu, 18 Jun 2015 15:42:57 +0400
    Message-Id: <[email protected]>
    
    But by unknown reason it was lost somewhere. This result in panic
    of xfstests ext4/304
    
    Signed-off-by: Dmitry Monakhov <[email protected]>
---
 fs/ext4/extents.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 37d04d3..8b4a7fc 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -584,9 +584,12 @@ static void ext4_ext_show_move(struct inode *inode, struct 
ext4_ext_path *path,
 
 void ext4_ext_drop_refs(struct ext4_ext_path *path)
 {
-       int depth = path->p_depth;
+       int depth;
        int i;
 
+       if (!path)
+               return;
+       depth = path->p_depth;
        for (i = 0; i <= depth; i++, path++)
                if (path->p_bh) {
                        brelse(path->p_bh);
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to