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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38931>
This commit is contained in:
Connor Abbott
2025-12-12 17:42:55 -05:00
committed by Marge Bot
parent f8feed17e1
commit 68c1a8230d
+1 -1
View File
@@ -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);
}