diff options
author | Sean Paul <[email protected]> | 2018-07-30 11:26:53 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-10-03 20:24:49 -0400 |
commit | aea24171c85edbff1e021016e8ea1bf64b89a4f8 (patch) | |
tree | cacafec9911892aea8ea4f45f89fbb8440f2627b /tools/perf/scripts/python/check-perf-trace.py | |
parent | 87c2ee740c07f1edae9eec8bc45cb9b32a68f323 (diff) |
drm/msm: dsi: Initialize msm_dsi->id to -1
Currently msm_dsi->id is initialized to 0 during kzalloc. If bind fails
for a secondary dsi device before its id can be properly set (such as
during dt parsing), the id will point to the primary dsi device, causing
its reference to be removed from dsi_manager's global (msm_dsim_glb)
array.
This patch initializes the id to -1 and checks for negative in the
manager cleanup.
Cc: Doug Anderson <[email protected]>
Reviewed-by: Abhinav Kumar <[email protected]>
Signed-off-by: Sean Paul <[email protected]>
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions