mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 09:41:54 +09:00
drm/nouveau/acr: refuse to load LSFW if HSFW is missing
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user