Patch "perf bpf-filter: Return -ENOMEM directly when pfi allocation fails" has been added to the 6.12-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 bpf-filter: Return -ENOMEM directly when pfi allocation fails

to the 6.12-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-bpf-filter-return-enomem-directly-when-pfi-allo.patch
and it can be found in the queue-6.12 subdirectory.

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



commit 1ca1a3fe1dafc05fb08b3cd329fc80700fbd784d
Author: Hao Ge <gehao@xxxxxxxxxx>
Date:   Wed Nov 13 11:05:37 2024 +0800

    perf bpf-filter: Return -ENOMEM directly when pfi allocation fails
    
    [ Upstream commit bd077a53ad87cb111632e564cdfe8dfbe96786de ]
    
    Directly return -ENOMEM when pfi allocation fails,
    instead of performing other operations on pfi.
    
    Fixes: 0fe2b18ddc40 ("perf bpf-filter: Support multiple events properly")
    Signed-off-by: Hao Ge <gehao@xxxxxxxxxx>
    Acked-by: Namhyung Kim <namhyung@xxxxxxxxxx>
    Cc: hao.ge@xxxxxxxxx
    Cc: bpf@xxxxxxxxxxxxxxx
    Link: https://lore.kernel.org/r/20241113030537.26732-1-hao.ge@xxxxxxxxx
    Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/perf/util/bpf-filter.c b/tools/perf/util/bpf-filter.c
index e87b6789eb9ef..a4fdf6911ec1c 100644
--- a/tools/perf/util/bpf-filter.c
+++ b/tools/perf/util/bpf-filter.c
@@ -375,7 +375,7 @@ static int create_idx_hash(struct evsel *evsel, struct perf_bpf_filter_entry *en
 	pfi = zalloc(sizeof(*pfi));
 	if (pfi == NULL) {
 		pr_err("Cannot save pinned filter index\n");
-		goto err;
+		return -ENOMEM;
 	}
 
 	pfi->evsel = evsel;




[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