From: "Yan, Zheng" <[email protected]>

Signed-off-by: Yan, Zheng <[email protected]>
---
 fs/ceph/inode.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c
index 6f0a35c..2ae1381 100644
--- a/fs/ceph/inode.c
+++ b/fs/ceph/inode.c
@@ -779,6 +779,7 @@ no_change:
                        rb_node = rb_next(rb_node);
                        rb_erase(&frag->node, &ci->i_fragtree);
                        kfree(frag);
+                       frag = NULL;
                }
                if (!frag) {
                        frag = __get_or_create_frag(ci, id);
-- 
1.8.1.4

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to