]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: Staging: media: omap4iss: Use WARN_ON() instead of BUG_ON()
authorSrishti Sharma <srishtishar@gmail.com>
Fri, 8 Sep 2017 14:08:18 +0000 (10:08 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Dec 2017 15:03:28 +0000 (10:03 -0500)
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>
drivers/staging/media/omap4iss/iss.c

index c26c99fd4a24abcaadc8782ce5da0458d1e261da..b1036baebb0357e741e729053b164a3c99d4d618 100644 (file)
@@ -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