Commit 12059481 authored by Srishti Sharma's avatar Srishti Sharma Committed by Mauro Carvalho Chehab

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: default avatarSrishti Sharma <srishtishar@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent b0fe7778
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment