From 68c1a8230d36f6d20c4abfdad1f0c089e71b9077 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Fri, 12 Dec 2025 17:42:55 -0500 Subject: [PATCH] freedreno/crashdec: Fix crash with older kernels Older kernels lack the cluster-name property. Don't crash decoding devcoredumps from them, even if they can't be converted to snapshots properly. Part-of: --- src/freedreno/decode/crashdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/decode/crashdec.c b/src/freedreno/decode/crashdec.c index 7841aa5447d..9233b2478d5 100644 --- a/src/freedreno/decode/crashdec.c +++ b/src/freedreno/decode/crashdec.c @@ -257,7 +257,7 @@ debugbus_id(const char *name) static uint32_t cluster_id(const char *name) { - if (!is_a7xx()) + if (!is_a7xx() || !name) return 0; return enumval("a7xx_cluster", name); }