Skip to content
Snippets Groups Projects
Commit b032183d authored by Cristian Ciocaltea's avatar Cristian Ciocaltea Committed by Sebastian Reichel
Browse files

phy: rockchip: samsung-hdptx: Set drvdata before enabling runtime PM


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: default avatarDmitrii Osipenko <dmitry.osipenko@collabora.com>
Fixes: 553be283 ("phy: rockchip: Add Samsung HDMI/eDP Combo PHY driver")
Signed-off-by: default avatarCristian Ciocaltea <cristian.ciocaltea@collabora.com>
parent 746cc770
Branches
No related tags found
No related merge requests found
Pipeline #115490 failed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment