summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/pmu/pmu_perfmon.c
diff options
context:
space:
mode:
authorPeter Boonstoppel <pboonstoppel@nvidia.com>2017-07-06 00:11:35 -0400
committerKonsta Holtta <kholtta@nvidia.com>2017-07-06 02:33:03 -0400
commit4166fc2f87ca4254b5e0c1433c810a83676d029a (patch)
tree42e96a4bc51296bf1ec4b1e02d38640641c247fa /drivers/gpu/nvgpu/common/pmu/pmu_perfmon.c
parent79a79b8ae6987e5620c9bc7ee080fe637a6ca57b (diff)
gpu: nvgpu: Fix null ptr in gm20b_tegra_postscale()
If devfreq governor is called from a timer during boot it is possible that gm20b_tegra_postscale() gets called before we have called gk20a_tegra_scale_init(). This change adds an explicit null ptr check to prevent any null ptr dereference. Bug 1954269 Change-Id: I4ebb6c702175b99af2862169f76623e24256b1ed Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com> Reviewed-on: https://git-master/r/1514262 GVS: Gerrit_Virtual_Submit Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/pmu/pmu_perfmon.c')
0 files changed, 0 insertions, 0 deletions