[PATCH 28/51] drm/bochs: Drop explicit drm_mode_config_cleanup
Gerd Hoffmann
kraxel at redhat.com
Tue Mar 3 07:50:47 UTC 2020
On Mon, Mar 02, 2020 at 11:26:08PM +0100, Daniel Vetter wrote:
> Instead rely on the automatic clean, for which we just need to check
> that drm_mode_config_init succeeded. To avoid an inversion in the
> cleanup we also have to move the dev_private allocation over to
> drmm_kzalloc.
>
> This is made possible by a preceeding patch which added a drmm_
> cleanup action to drm_mode_config_init(), hence all we need to do to
> ensure that drm_mode_config_cleanup() is run on final drm_device
> cleanup is check the new error code for _init().
Acked-by: Gerd Hoffmann <kraxel at redhat.com>
More information about the dri-devel
mailing list