drm/msm/phy/dsi_phy: Set pll to NULL in case initialization fails
authorSean Paul <seanpaul@chromium.org>
Mon, 17 Jun 2019 20:09:17 +0000 (16:09 -0400)
committerSean Paul <seanpaul@chromium.org>
Thu, 20 Jun 2019 18:41:59 +0000 (14:41 -0400)
commit7896e2237d034493036b25fc0c674654eeeb4dfa
tree6fa7a70897c1ef6997aa88bbe27df9fdf0f736fa
parenta93be1fc6c84f09a51bb72f833a39c2dc942bd21
drm/msm/phy/dsi_phy: Set pll to NULL in case initialization fails

We have if (!phy->pll) checks scattered through the driver and if
phy->pll is an error pointer, those checks will pass and bad things will
happen :(

Reviewed-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190617200920.133104-1-sean@poorly.run
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c