On Wed, Feb 19, 2020 at 11:20:59AM +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.
Signed-off-by: Daniel Vetter daniel.vetter@intel.com Cc: Gerd Hoffmann kraxel@redhat.com Cc: virtualization@lists.linux-foundation.org
Acked-by: Gerd Hoffmann kraxel@redhat.com