Re: [PATCH 02/20] drm/amdgpu: don't trample pdev drvdata

2024-05-13 Thread Christian König
Am 10.05.24 um 20:12 schrieb Matthew Auld: The driver release callback is called when a particular drm_device goes away, just like with drmm, so here we should never nuke the pdev drvdata pointer, since that could already be pointing to a new drvdata. For example something hotunplugs the device,

[PATCH 02/20] drm/amdgpu: don't trample pdev drvdata

2024-05-10 Thread Matthew Auld
The driver release callback is called when a particular drm_device goes away, just like with drmm, so here we should never nuke the pdev drvdata pointer, since that could already be pointing to a new drvdata. For example something hotunplugs the device, for which we have an open driver fd, keeping