Hi Ilpo,

On 8/22/24 1:11 AM, Ilpo Järvinen wrote:
arch_supports_noncont_cat() checks if vendor is ARCH_AMD and if that is
not true, ARCH_INTEL is assumed which might not be true either because
get_vendor() can also return zero if neither AMD nor Intel is detected.

Generalize the vendor check using switch/case logic and return false
for unknown vendors.

Signed-off-by: Ilpo Järvinen <ilpo.jarvi...@linux.intel.com>
Reviewed-by: Muhammad Usama Anjum <usama.an...@collabora.com>
---

Acked-by: Reinette Chatre <reinette.cha...@intel.com>

Reinette

Reply via email to