All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/irq: BUG_ON() -> WARN_ON()
@ 2014-11-08 15:16 Rob Clark
  2014-11-10  3:57 ` Michel Dänzer
  2014-11-10 11:01 ` Jani Nikula
  0 siblings, 2 replies; 5+ messages in thread
From: Rob Clark @ 2014-11-08 15:16 UTC (permalink / raw)
  To: dri-devel

Let's make things a bit easier to debug when things go bad (potentially
under console_lock).

Signed-off-by: Rob Clark <robdclark@gmail.com>
---
 drivers/gpu/drm/drm_irq.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c
index 5ef03c2..c4edea9 100644
--- a/drivers/gpu/drm/drm_irq.c
+++ b/drivers/gpu/drm/drm_irq.c
@@ -1029,7 +1029,8 @@ void drm_vblank_put(struct drm_device *dev, int crtc)
 {
 	struct drm_vblank_crtc *vblank = &dev->vblank[crtc];
 
-	BUG_ON(atomic_read(&vblank->refcount) == 0);
+	if (WARN_ON(atomic_read(&vblank->refcount) == 0))
+		return;
 
 	if (WARN_ON(crtc >= dev->num_crtcs))
 		return;
-- 
1.9.3

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-10 11:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-08 15:16 [PATCH] drm/irq: BUG_ON() -> WARN_ON() Rob Clark
2014-11-10  3:57 ` Michel Dänzer
2014-11-10 11:01 ` Jani Nikula
2014-11-10 11:33   ` Maarten Lankhorst
2014-11-10 11:33     ` Maarten Lankhorst

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.