提交 8fdc45e4 编写于 作者: B Ben Skeggs

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

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册