]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Upgrade gxpd checks to IS_ERR_OR_NULL
authorSean Paul <seanpaul@chromium.org>
Wed, 15 May 2019 17:00:52 +0000 (13:00 -0400)
committerSean Paul <seanpaul@chromium.org>
Wed, 15 May 2019 20:03:08 +0000 (16:03 -0400)
commitb560ac87cc767f6a0e798ac41c171638cedb0ddd
treea39bf61b41f63724e6c228bb7d9f44f788b4ffca
parent16eb7ab1c5117981dbf2a02e0eb0696addc69237
drm/msm: Upgrade gxpd checks to IS_ERR_OR_NULL

dev_pm_domain_attach_by_name() can return NULL, so we should check for
that case when we're about to dereference gxpd.

Fixes: c385cd8445f3 ("drm/msm/gpu: Attach to the GPU GX power domain")
Cc: Jordan Crouse <jcrouse@codeaurora.org>
Cc: Rob Clark <robdclark@chromium.org>
Reviewed-by: Jordan Crouse <jcrouse@codeauorora.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190515170104.155525-1-sean@poorly.run
drivers/gpu/drm/msm/adreno/a6xx_gmu.c