diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2022-06-01 13:46:02 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2022-07-13 06:55:52 +0300 |
commit | 4ddf8d7dedb881c6638850f1b74ff1f9967c89b7 (patch) | |
tree | d5be1d12f17be64001e16d80b41ae13b072805de | |
parent | 61c1f340bc809a1ca1e3c8794207a91cde1a7c78 (diff) | |
download | linux-4ddf8d7dedb881c6638850f1b74ff1f9967c89b7.tar.xz |
drm/nouveau/nvkm: zero out engine pointer for subdev-provided classes
Doesn't fix any known issue, but noticed fifo being initialised in
logs in response to mmu allocation.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/engine/device/user.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/device/user.c b/drivers/gpu/drm/nouveau/nvkm/engine/device/user.c index 113ddc103ac2..45f509c11c36 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/device/user.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/device/user.c @@ -346,6 +346,7 @@ nvkm_udevice_child_get(struct nvkm_object *object, int index, return -EINVAL; oclass->base = sclass->base; + oclass->engine = NULL; } oclass->ctor = nvkm_udevice_child_new; |