freedreno/crashdec: Fix crash with older kernels
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

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

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);
}