The patch titled Subject: ocfs2: free vol_label in ocfs2_delete_osb() has been added to the -mm tree. Its filename is ocfs2-free-vol_lable-in-ocfs2_delete_osb.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/ocfs2-free-vol_lable-in-ocfs2_delete_osb.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/ocfs2-free-vol_lable-in-ocfs2_delete_osb.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Joseph Qi <joseph.qi@xxxxxxxxxx> Subject: ocfs2: free vol_label in ocfs2_delete_osb() osb->vol_label is malloced in ocfs2_initialize_super but not freed if error occurs or during umount, thus causing a memory leak. Signed-off-by: Joseph Qi <joseph.qi@xxxxxxxxxx> Reviewed-by: joyce.xue <xuejiufei@xxxxxxxxxx> Cc: Mark Fasheh <mfasheh@xxxxxxxx> Cc: Joel Becker <jlbec@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/ocfs2/super.c | 1 + 1 file changed, 1 insertion(+) diff -puN fs/ocfs2/super.c~ocfs2-free-vol_lable-in-ocfs2_delete_osb fs/ocfs2/super.c --- a/fs/ocfs2/super.c~ocfs2-free-vol_lable-in-ocfs2_delete_osb +++ a/fs/ocfs2/super.c @@ -2532,6 +2532,7 @@ static void ocfs2_delete_osb(struct ocfs kfree(osb->journal); kfree(osb->local_alloc_copy); kfree(osb->uuid_str); + kfree(osb->vol_label); ocfs2_put_dlm_debug(osb->osb_dlm_debug); memset(osb, 0, sizeof(struct ocfs2_super)); } _ Patches currently in -mm which might be from joseph.qi@xxxxxxxxxx are ocfs2-dlm-refactor-error-handling-in-dlm_alloc_ctxt.patch ocfs2-fix-shift-left-operations-overflow.patch ocfs2-free-vol_lable-in-ocfs2_delete_osb.patch ocfs2-dlm-fix-race-between-dispatched_work-and-dlm_lockres_grab_inflight_worker.patch ocfs2-fix-deadlock-between-o2hb-thread-and-o2net_wq.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html