]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/nouveau/nvkm: zero out engine pointer for subdev-provided classes
authorBen Skeggs <bskeggs@redhat.com>
Wed, 1 Jun 2022 10:46:02 +0000 (20:46 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 13 Jul 2022 03:55:52 +0000 (13:55 +1000)
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>
drivers/gpu/drm/nouveau/nvkm/engine/device/user.c

index 113ddc103ac263dd86fcfb440cee0196f340af21..45f509c11c361ad9ed6c6ae3a7483094acbcf54a 100644 (file)
@@ -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;