aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/config.py
diff options
context:
space:
mode:
authorAleksei Gimbitskii <[email protected]>2019-05-02 12:59:21 +0300
committerZhenyu Wang <[email protected]>2019-05-30 17:21:19 +0800
commit27348cc9c8ec5588cd5fd66250cf846e35c25055 (patch)
tree582867a8a330983abe2442f8adea96cf3dd8a4ff /scripts/gdb/linux/config.py
parent3035e8cd6c316cb633b45bc9b38052ba2dfd299b (diff)
drm/i915/gvt: Check if cur_pt_type is valid
Static code analyzer warns that index value for scratch_pt may be equal to -1. Index value type is intel_gvt_gtt_type_t, so it may be any number at range -1 to 17. Check first if cur_pt_type and cur_pt_type+1 is valid values. v2: - Print some error messages if page table type is invalid. (Colin Xu) v4: - Print cur_pt_type in error message. (Colin Xu) This patch fixed the critial issue #422 reported by klocwork. Acked-by: Colin Xu <[email protected]> Signed-off-by: Aleksei Gimbitskii <[email protected]> Cc: Zhenyu Wang <[email protected]> Cc: Zhi Wang <[email protected]> Cc: Colin Xu <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions