drm/nouveau/core: Allow asymmetric nouveau_event_get/_put
Most nouveau event handlers have storage in 'static' containers (structures with lifetimes nearly equivalent to the drm_device), but are dangerously reused via nouveau_event_get/_put. For example, if nouveau_event_get is called more than once for a given handler, the event handler list will be corrupted. Signed-off-by:Peter Hurley <peter@hurleysoftware.com> Signed-off-by:
Ben Skeggs <bskeggs@redhat.com>
Showing
- drivers/gpu/drm/nouveau/core/core/event.c 12 additions, 8 deletionsdrivers/gpu/drm/nouveau/core/core/event.c
- drivers/gpu/drm/nouveau/core/include/core/event.h 4 additions, 0 deletionsdrivers/gpu/drm/nouveau/core/include/core/event.h
- drivers/gpu/drm/nouveau/nouveau_drm.c 2 additions, 6 deletionsdrivers/gpu/drm/nouveau/nouveau_drm.c
Please register or sign in to comment