[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1504879698-5855-1-git-send-email-srishtishar@gmail.com>
Date: Fri, 8 Sep 2017 19:38:18 +0530
From: Srishti Sharma <srishtishar@...il.com>
To: gregkh@...uxfoundation.org
Cc: laurent.pinchart@...asonboard.com, mchehab@...nel.org,
linux-media@...r.kernel.org, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org, outreachy-kernel@...glegroups.com,
Srishti Sharma <srishtishar@...il.com>
Subject: [PATCH] Staging: media: omap4iss: Use WARN_ON() instead of BUG_ON().
Use WARN_ON() instead of BUG_ON() to avoid crashing the kernel.
Signed-off-by: Srishti Sharma <srishtishar@...il.com>
---
drivers/staging/media/omap4iss/iss.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/media/omap4iss/iss.c b/drivers/staging/media/omap4iss/iss.c
index c26c99fd..b1036ba 100644
--- a/drivers/staging/media/omap4iss/iss.c
+++ b/drivers/staging/media/omap4iss/iss.c
@@ -893,7 +893,7 @@ void omap4iss_put(struct iss_device *iss)
return;
mutex_lock(&iss->iss_mutex);
- BUG_ON(iss->ref_count == 0);
+ WARN_ON(iss->ref_count == 0);
if (--iss->ref_count == 0) {
iss_disable_interrupts(iss);
/* Reset the ISS if an entity has failed to stop. This is the
--
2.7.4
Powered by blists - more mailing lists