From: Srishti Sharma Date: Fri, 8 Sep 2017 14:08:18 +0000 (-0400) Subject: media: Staging: media: omap4iss: Use WARN_ON() instead of BUG_ON() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=12059481fd7d6dc2dc5f2686745bcaa11640e08f;p=openwrt%2Fstaging%2Fblogic.git media: 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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/omap4iss/iss.c b/drivers/staging/media/omap4iss/iss.c index c26c99fd4a24..b1036baebb03 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