diff options
author | 2019-04-23 15:04:13 +0300 | |
---|---|---|
committer | 2019-04-25 15:36:29 +0800 | |
commit | 930c8dfea4b8f320bd7f6a3e5e721ac20e444e03 (patch) | |
tree | 7b506968128d833bdcfcba2c10a2a22655ba6c51 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | drm/i915/gvt: Use snprintf() to prevent possible buffer overflow. (diff) | |
download | wireguard-linux-930c8dfea4b8f320bd7f6a3e5e721ac20e444e03.tar.xz wireguard-linux-930c8dfea4b8f320bd7f6a3e5e721ac20e444e03.zip |
drm/i915/gvt: Check if get_next_pt_type() always returns a valid value
According to gtt_type_table[] function get_next_pt_type() may returns
GTT_TYPE_INVALID in some cases. To prevent driver to try to create memory
page with invalid data type, additional check is added.
Signed-off-by: Aleksei Gimbitskii <aleksei.gimbitskii@intel.com>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: Zhi Wang <zhi.a.wang@intel.com>
Cc: Colin Xu <colin.xu@intel.com>
Reviewed-by: Colin Xu <colin.xu@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions