[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1501485243-11977-1-git-send-email-jananis37@gmail.com>
Date: Mon, 31 Jul 2017 12:44:03 +0530
From: janani-sankarababu <jananis37@...il.com>
To: eric@...olt.net
Cc: stefan.wahren@...e.com, gregkh@...uxfoundation.org,
f.fainelli@...il.com, rjui@...adcom.com, sbranden@...adcom.com,
aishpant@...il.com, mzoran@...wfest.net, julia.lawall@...6.fr,
vicmos89@...il.com, sreyamittal5@...il.com,
linux-rpi-kernel@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org,
janani-sankarababu <jananis37@...il.com>
Subject: [PATCH] Staging: vc04_services: Fix WARN_ON instead of BUG_ON
This patch is to replace the use of BUG_ON macro with WARN_ON
inorder to prevent the crashing of the kernel.
Signed-off-by: Janani Sankara Babu <jananis37@...il.com>
---
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c
index f484bb0..30bc246 100644
--- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c
+++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c
@@ -91,7 +91,7 @@ static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol,
if (mutex_lock_interruptible(&chip->audio_mutex))
return -EINTR;
- BUG_ON(!chip && !(chip->avail_substreams & AVAIL_SUBSTREAMS_MASK));
+ WARN_ON(!chip && !(chip->avail_substreams & AVAIL_SUBSTREAMS_MASK));
if (kcontrol->private_value == PCM_PLAYBACK_VOLUME)
ucontrol->value.integer.value[0] = chip2alsa(chip->volume);
--
1.9.1
Powered by blists - more mailing lists