mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
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:
parent
f8feed17e1
commit
68c1a8230d
1 changed files with 1 additions and 1 deletions
|
|
@ -257,7 +257,7 @@ debugbus_id(const char *name)
|
||||||
static uint32_t
|
static uint32_t
|
||||||
cluster_id(const char *name)
|
cluster_id(const char *name)
|
||||||
{
|
{
|
||||||
if (!is_a7xx())
|
if (!is_a7xx() || !name)
|
||||||
return 0;
|
return 0;
|
||||||
return enumval("a7xx_cluster", name);
|
return enumval("a7xx_cluster", name);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue