Patch "perf disasm: Use disasm_line__free() to properly free disasm_line" has been added to the 6.11-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    perf disasm: Use disasm_line__free() to properly free disasm_line

to the 6.11-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     perf-disasm-use-disasm_line__free-to-properly-free-d.patch
and it can be found in the queue-6.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 5f3fc93f8d2e8b2c784ef57e6a7ae1157b780a18
Author: Li Huafei <lihuafei1@xxxxxxxxxx>
Date:   Sat Oct 19 23:41:55 2024 +0800

    perf disasm: Use disasm_line__free() to properly free disasm_line
    
    [ Upstream commit b4e0e9a1e30059f4523c9b6a1f8045ad89b5db8a ]
    
    The structure disasm_line contains members that require dynamically
    allocated memory and need to be freed correctly using
    disasm_line__free().
    
    This patch fixes the incorrect release in
    symbol__disassemble_capstone().
    
    Fixes: 6d17edc113de ("perf annotate: Use libcapstone to disassemble")
    Signed-off-by: Li Huafei <lihuafei1@xxxxxxxxxx>
    Tested-by: Athira Rajeev <atrajeev@xxxxxxxxxxxxxxxxxx>
    Cc: sesse@xxxxxxxxxx
    Cc: kjain@xxxxxxxxxxxxx
    Link: https://lore.kernel.org/r/20241019154157.282038-1-lihuafei1@xxxxxxxxxx
    Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/perf/util/disasm.c b/tools/perf/util/disasm.c
index 766cbd005f32a..c2ce33e447e35 100644
--- a/tools/perf/util/disasm.c
+++ b/tools/perf/util/disasm.c
@@ -1391,7 +1391,7 @@ static int symbol__disassemble_capstone(char *filename, struct symbol *sym,
 		 */
 		list_for_each_entry_safe(dl, tmp, &notes->src->source, al.node) {
 			list_del(&dl->al.node);
-			free(dl);
+			disasm_line__free(dl);
 		}
 	}
 	count = -1;




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux