Commit 8fdc45e4 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/acr: refuse to load LSFW if HSFW is missing

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 8140f92c
......@@ -60,7 +60,7 @@ nvkm_acr_lsfw_add(const struct nvkm_acr_lsf_func *func, struct nvkm_acr *acr,
{
struct nvkm_acr_lsfw *lsfw;
if (!acr)
if (!acr || list_empty(&acr->hsfw))
return ERR_PTR(-ENOSYS);
lsfw = nvkm_acr_lsfw_get(acr, id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment