]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/gpu: Set number of clocks to 0 if the list allocation fails
authorJordan Crouse <jcrouse@codeaurora.org>
Mon, 22 Jan 2018 18:10:45 +0000 (11:10 -0700)
committerRob Clark <robdclark@gmail.com>
Tue, 20 Feb 2018 15:41:22 +0000 (10:41 -0500)
commit8ff0cc79ea02f9074c5e0098e3d068565b2d375d
treef6973d9e446df02bdc5df5fe1e70e328f1fc196b
parent12e1de7a5be47e8c9f854aa324469c542e47fcc0
drm/msm/gpu: Set number of clocks to 0 if the list allocation fails

If we fail to allocate gpu->grp_clks reset the number of available
clocks to zero to avoid referencing the missing array later.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_gpu.c