[PATCH] phy: rockchip: samsung-hdptx: Set drvdata before enabling runtime PM
Heiko Stübner
heiko at sntech.de
Sat Nov 9 14:13:12 PST 2024
Am Mittwoch, 23. Oktober 2024, 19:29:54 CET schrieb Cristian Ciocaltea:
> In some cases, rk_hdptx_phy_runtime_resume() may be invoked before
> platform_set_drvdata() is executed in ->probe(), leading to a NULL
> pointer dereference when using the return of dev_get_drvdata().
>
> Ensure platform_set_drvdata() is called before devm_pm_runtime_enable().
>
> Reported-by: Dmitry Osipenko <dmitry.osipenko at collabora.com>
> Fixes: 553be2830c5f ("phy: rockchip: Add Samsung HDMI/eDP Combo PHY driver")
> Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea at collabora.com>
Reviewed-by: Heiko Stuebner <heiko at sntech.de>
More information about the linux-phy
mailing list