]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/hisilicon/hibmc: fix the hibmc loaded failed bug
authorBaihan Li <libaihan@huawei.com>
Wed, 13 Aug 2025 09:42:31 +0000 (17:42 +0800)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Sun, 17 Aug 2025 15:22:05 +0000 (18:22 +0300)
commit93a08f856fcc5aaeeecad01f71bef3088588216a
tree72ea0ac96aaf5ba4173bcf61381a54e16619a765
parent8bed4ec42a4e0dc8113172696ff076d1eb6d8bcb
drm/hisilicon/hibmc: fix the hibmc loaded failed bug

When hibmc loaded failed, the driver use hibmc_unload to free the
resource, but the mutexes in mode.config are not init, which will
access an NULL pointer. Just change goto statement to return, because
hibnc_hw_init() doesn't need to free anything.

Fixes: b3df5e65cc03 ("drm/hibmc: Drop drm_vblank_cleanup")
Signed-off-by: Baihan Li <libaihan@huawei.com>
Signed-off-by: Yongbang Shi <shiyongbang@huawei.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250813094238.3722345-5-shiyongbang@huawei.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c