coverity bugfix from the kernel
parent
4f53bf3545
commit
299aad03c2
|
@ -206,7 +206,7 @@ via_driver_irq_wait(drm_device_t * dev, unsigned int irq, int force_sequence,
|
|||
unsigned int cur_irq_sequence;
|
||||
drm_via_irq_t *cur_irq = dev_priv->via_irqs;
|
||||
int ret = 0;
|
||||
maskarray_t *masks = dev_priv->irq_masks;
|
||||
maskarray_t *masks;
|
||||
int real_irq;
|
||||
|
||||
DRM_DEBUG("%s\n", __FUNCTION__);
|
||||
|
@ -230,7 +230,7 @@ via_driver_irq_wait(drm_device_t * dev, unsigned int irq, int force_sequence,
|
|||
return DRM_ERR(EINVAL);
|
||||
}
|
||||
|
||||
|
||||
masks = dev_priv->irq_masks;
|
||||
cur_irq += real_irq;
|
||||
|
||||
if (masks[real_irq][2] && !force_sequence) {
|
||||
|
|
Loading…
Reference in New Issue