On Mon, 2024-06-17 at 19:48 +0200, Danilo Krummrich wrote: + mem->size = size;
+ mem->dev = gsp->subdev.device->dev; If this can potentially out-live the drivers remove() callback, we have to take a device reference here and drop it in nvkm_gsp_mem_dtor(). mem->dev = get_device(gsp->subdev.device->dev); That's an excellent idea, thanks. It's not currently a problem, but like you said, the idea is to allow it.