mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
drm crtc: add forgotten idr cleanup functions
drm_mode_config_init initializes the idr with idr_init, so add the missing counterparts in drm_mode_config_cleanup. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
f2746f83d5
commit
59ce062ead
1 changed files with 3 additions and 0 deletions
|
@ -1048,6 +1048,9 @@ void drm_mode_config_cleanup(struct drm_device *dev)
|
||||||
head) {
|
head) {
|
||||||
plane->funcs->destroy(plane);
|
plane->funcs->destroy(plane);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
idr_remove_all(&dev->mode_config.crtc_idr);
|
||||||
|
idr_destroy(&dev->mode_config.crtc_idr);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(drm_mode_config_cleanup);
|
EXPORT_SYMBOL(drm_mode_config_cleanup);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue