Add more strict check to fix crash issue caused by invalid parameter
authorZhao Yakui <yakui.zhao@intel.com>
Tue, 15 Oct 2013 03:01:04 +0000 (11:01 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 13 Nov 2013 07:33:04 +0000 (15:33 +0800)
commitdaede78837ea4384df4c10dce9f7fabef4f31a17
tree28b14a09348bdd62d113c9e2bfef14a89e0972bc
parent7b6c3bfa1111b26a5519438a9eca67ff88d7ef04
Add more strict check to fix crash issue caused by invalid parameter

This is to fix the crash issue in https://bugs.freedesktop.org/show_bug.cgi?id=70397

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 80d665eb670fd700d03f9a2486e452947177a058)
src/i965_drv_video.c