diff options
| author | Jia-Ju Bai <[email protected]> | 2019-07-29 16:36:44 +0800 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-08-02 10:30:38 -0500 |
| commit | f3eb9b8f67bc28783eddc142ad805ebdc53d6339 (patch) | |
| tree | fa46fcc6ca7d572aef45d1443c4f8dceedfad5c6 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py | |
| parent | e3bf125bdbb6efed2d650effbc3c13320602d64a (diff) | |
gpu: drm: radeon: Fix a possible null-pointer dereference in radeon_connector_set_property()
In radeon_connector_set_property(), there is an if statement on line 743
to check whether connector->encoder is NULL:
if (connector->encoder)
When connector->encoder is NULL, it is used on line 755:
if (connector->encoder->crtc)
Thus, a possible null-pointer dereference may occur.
To fix this bug, connector->encoder is checked before being used.
This bug is found by a static analysis tool STCheck written by us.
Signed-off-by: Jia-Ju Bai <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py')
0 files changed, 0 insertions, 0 deletions