CVS: cvs.openbsd.org: src

Jonathan Gray <[email protected]>
Newsgroups gmane.os.openbsd.cvs
Message-ID <[email protected]>
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@
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.