diff options
author | Srishti Sharma <srishtishar@gmail.com> | 2017-09-08 10:08:18 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-12-08 10:03:28 -0500 |
commit | 12059481fd7d6dc2dc5f2686745bcaa11640e08f (patch) | |
tree | d505cbdffa3a7f2959684b7a118dc74379f917d2 /drivers/staging/media/omap4iss/iss.c | |
parent | b0fe777884f5cebc46427f63bc9df1a78bfab1a1 (diff) | |
download | op-kernel-dev-12059481fd7d6dc2dc5f2686745bcaa11640e08f.zip op-kernel-dev-12059481fd7d6dc2dc5f2686745bcaa11640e08f.tar.gz |
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>
Diffstat (limited to 'drivers/staging/media/omap4iss/iss.c')
-rw-r--r-- | drivers/staging/media/omap4iss/iss.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |