diff options
author | 2018-05-02 12:11:57 +0300 | |
---|---|---|
committer | 2018-05-07 10:19:12 -0400 | |
commit | e1cdab6e5f9a52e0bdf34363ec0fdab0e2328ba9 (patch) | |
tree | 486480c0937ea85acd63ff2d137cb9700e2c9f13 /tools/perf/scripts/python/stackcollapse.py | |
parent | drm/omap: check return value from soc_device_match (diff) | |
download | linux-dev-e1cdab6e5f9a52e0bdf34363ec0fdab0e2328ba9.tar.xz linux-dev-e1cdab6e5f9a52e0bdf34363ec0fdab0e2328ba9.zip |
drm/omap: handle error if scale coefs are not found
If get_scale_coef functions fail, they return NULL, but we never check
the return value and could do a NULL deref. This should not happen as we
ought to validate the amount of scaling already earlier, but to be safe,
add the necessary check.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180502091159.7071-3-tomi.valkeinen@ti.com
Reviewed-by: Benoit Parrot <bparrot@ti.com>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions