drm/i915/gvt: Avoid dereference a potential null pointer
authorXinyun Liu <xinyun.liu@intel.com>
Thu, 7 Jun 2018 14:48:40 +0000 (22:48 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 11 Jun 2018 07:03:36 +0000 (15:03 +0800)
commit1f1c60d5b577377d07863f3e0891e63a0a56a3ad
tree6344a315fc600fc93c1046cc7a5902674704f839
parent0766e2efc6968179ceec9828caf740ec0ac58a15
drm/i915/gvt: Avoid dereference a potential null pointer

Add sanity check for up_irq_info.

Signed-off-by: Xinyun Liu <xinyun.liu@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/interrupt.c