mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 05:46:39 +07:00
drm/nouveau: call drm_vblank_cleanup() earlier
Fixes a NULL-ptr deref seen on module unload sometimes. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
2332b31116
commit
1139ffb96b
@ -74,14 +74,14 @@ nouveau_display_vblank_fini(struct drm_device *dev)
|
||||
struct nouveau_display *disp = nouveau_display(dev);
|
||||
int i;
|
||||
|
||||
drm_vblank_cleanup(dev);
|
||||
|
||||
if (disp->vblank) {
|
||||
for (i = 0; i < dev->mode_config.num_crtc; i++)
|
||||
nouveau_event_ref(NULL, &disp->vblank[i]);
|
||||
kfree(disp->vblank);
|
||||
disp->vblank = NULL;
|
||||
}
|
||||
|
||||
drm_vblank_cleanup(dev);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user