drm/nouveau/acr: return error when registering LSF if ACR not supported
authorBen Skeggs <bskeggs@redhat.com>
Wed, 29 Jan 2020 01:20:34 +0000 (11:20 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 29 Jan 2020 05:49:56 +0000 (15:49 +1000)
commit1c338ed5e52b62737a9d45f37f085bdbb367821b
tree26bc91aa8335c59a9a7775cd18771bce6fd7246a
parent86e18ebd87072ed1ba6ecd86271e7a712115d579
drm/nouveau/acr: return error when registering LSF if ACR not supported

This fixes an oops on TU11x GPUs where SEC2 attempts to register its falcon,
and triggers a NULL-pointer deref because ACR isn't yet supported.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c