mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 13:32:07 -04:00
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 <srishtishar@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
b0fe777884
commit
12059481fd
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user