CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2026/07/13 01:19:01

Modified files:
        sys/dev/pci/drm: drm_drv.c 
        sys/dev/pci/drm/amd/amdgpu: amdgpu_drv.c 
        sys/dev/pci/drm/include/drm: drm_drv.h 

Log message:
more cleanup on close to avoid a use after free

In Linux, some driver specific cleanup is handled with the release
function pointer in struct file_operations.

For amdgpu, this was changed in Linux 6.16 from drm_release() to
amdgpu_drm_release().  Add a file_close function pointer to
struct drm_driver so we can call a function that does the same cleanup.

found by gnezdo@ with KASAN
ok gnezdo@

Reply via email to