Re: [PATCH 1/2] [v2] drm/nouveau: retain device pointer in nvkm_gsp_mem object

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]<

 



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.


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux