summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorSharat Masetty <smasetty@codeaurora.org>2017-06-13 12:37:05 +0530
committerSharat Masetty <smasetty@codeaurora.org>2017-06-16 15:59:47 +0530
commitb0f487c506d21033d1f0421003f98dbf3cb79bbc (patch)
treec4c9d2caa24795d2182bd496e40067eb262a8311 /tools/perf/scripts/python/bin
parentc1a2472056c800ff46e0ac21a4b67c179a570ad0 (diff)
drm/msm: gracefully handle NULL return from setup_pagetable()
There is a possibility that load_gpu() can fail to initialize and turn on the GPU successfully due to system level issues such as a clock or a regulator not turning on. In such a case setup_pagetable() returns a NULL pointer which is not handled correctly in msm_open(). This leads to a crash in INIT_LIST_HEAD() which tries to access a NULL pointer. This patch properly handles the NULL return and initializes the list head only if the gpu load was successful, also adds missing NULL checks to places in the code where the msm_file_private structure was being accessed. Change-Id: I6eb85227d928a82c3cf2553fd6645affdd986473 Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions