forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/gpu/drm/sun4i/sun4i_drv.c
....@@ -93,7 +93,7 @@
9393 /* drm_vblank_init calls kcalloc, which can fail */
9494 ret = drm_vblank_init(drm, drm->mode_config.num_crtc);
9595 if (ret)
96
- goto cleanup_mode_config;
96
+ goto unbind_all;
9797
9898 drm->irq_enabled = true;
9999
....@@ -117,6 +117,8 @@
117117
118118 finish_poll:
119119 drm_kms_helper_poll_fini(drm);
120
+unbind_all:
121
+ component_unbind_all(dev, NULL);
120122 cleanup_mode_config:
121123 drm_mode_config_cleanup(drm);
122124 of_reserved_mem_device_release(dev);