diff mbox

Ceph: Fix use-after-free in destroy_fs_client()

Message ID alpine.LNX.2.00.1012251858190.10759@swampdragon.chaosbits.net (mailing list archive)
State New, archived
Headers show

Commit Message

Jesper Juhl Dec. 25, 2010, 6:01 p.m. UTC
None
diff mbox

Patch

diff --git a/fs/ceph/super.c b/fs/ceph/super.c
index 08b460a..7373594 100644
--- a/fs/ceph/super.c
+++ b/fs/ceph/super.c
@@ -498,8 +498,8 @@  void destroy_fs_client(struct ceph_fs_client *fsc)
 
 	ceph_destroy_client(fsc->client);
 
-	kfree(fsc);
 	dout("destroy_fs_client %p done\n", fsc);
+	kfree(fsc);
 }
 
 /*