aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>2024-10-23 20:29:54 +0300
committerVinod Koul <vkoul@kernel.org>2024-12-08 21:42:07 +0530
commit9d23e48654620fdccfcc74cc2cef04eaf7353d07 (patch)
tree7888bd9c6a9759f8bc4188876f1cc04f3223e0a5 /lib/memory-notifier-error-inject.c
parent2de679ecd724b823c2cb58caab8508c7eec8aefc (diff)
downloadlinux-9d23e48654620fdccfcc74cc2cef04eaf7353d07.tar.gz
linux-9d23e48654620fdccfcc74cc2cef04eaf7353d07.tar.bz2
linux-9d23e48654620fdccfcc74cc2cef04eaf7353d07.zip
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: Dmitry Osipenko <dmitry.osipenko@collabora.com> Fixes: 553be2830c5f ("phy: rockchip: Add Samsung HDMI/eDP Combo PHY driver") Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> Reviewed-by: Heiko Stuebner <heiko@sntech.de> Link: https://lore.kernel.org/r/20241023-phy-sam-hdptx-rpm-fix-v1-1-87f4c994e346@collabora.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions