Re: [syzbot] [dri?] WARNING in drm_prime_destroy_file_private (2)

Hillf Danton
2023-12-28T11:56:47Z

On Wed, 27 Dec 2023 12:51:18 -0800
> HEAD commit: 5254c0cbc92d Merge tag 'block-6.7-2023-12-22' of git://git..
> git tree: upstream
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=155d5fd6e80000

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master

--- x/drivers/gpu/drm/drm_file.c
+++ y/drivers/gpu/drm/drm_file.c
@@ -287,6 +287,7 @@ void drm_file_free(struct drm_file *file
if (dev->driver->postclose)
dev->driver->postclose(dev, file);

+ drm_gem_release(dev, file);
drm_prime_destroy_file_private(&file->prime);

WARN_ON(!list_empty(&file->event_list));
--