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>
This commit is contained in:
parent
0766e2efc6
commit
1f1c60d5b5
|
@ -350,7 +350,8 @@ static void update_upstream_irq(struct intel_vgpu *vgpu,
|
|||
clear_bits |= (1 << bit);
|
||||
}
|
||||
|
||||
WARN_ON(!up_irq_info);
|
||||
if (WARN_ON(!up_irq_info))
|
||||
return;
|
||||
|
||||
if (up_irq_info->group == INTEL_GVT_IRQ_INFO_MASTER) {
|
||||
u32 isr = i915_mmio_reg_offset(up_irq_info->reg_base);
|
||||
|
|
Loading…
Reference in a new issue