fix the vop spam patch

This commit is contained in:
Hal Emmerich 2019-06-25 14:24:31 -05:00
parent fedca1d5bb
commit 39dcd2c4da

View File

@ -6,8 +6,8 @@ index 48c222d..f8f9ae6 100644
struct vop *vop = to_vop(crtc);
unsigned long flags;
- if (!vop->is_enabled)
+ if (WARN_ON(!vop->is_enabled))
+ if (!vop->is_enabled)
- if (WARN_ON(!vop->is_enabled))
return -EPERM;
spin_lock_irqsave(&vop->irq_lock, flags);