From: Atharv Dubey <atharvd440@gmail.com>
To: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] media: cx25821-alsa: replace BUG_ON() with WARN_ON()
Date: Thu, 19 Mar 2026 20:11:44 +0530 [thread overview]
Message-ID: <a5887e4c-6333-4a3f-9ad4-5ba106c0ef30@gmail.com> (raw)
In-Reply-To: <20260314-media-v1-1-fc6235c57d04@gmail.com>
A Gentle Reminder for reviewing the patch.
Thanks,
Atharv
On 3/14/26 02:02, Atharv Dubey wrote:
> media: cx25821-alsa: replace BUG_ON() with WARN_ON()
>
> Avoid crashing the kernel for a recoverable condition
> by replacing BUG_ON() with WARN_ON().
>
> Signed-off-by: Atharv Dubey <atharvd440@gmail.com>
> ---
> drivers/media/pci/cx25821/cx25821-alsa.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/media/pci/cx25821/cx25821-alsa.c b/drivers/media/pci/cx25821/cx25821-alsa.c
> index 3f73391f9098..4fdc59aaed8e 100644
> --- a/drivers/media/pci/cx25821/cx25821-alsa.c
> +++ b/drivers/media/pci/cx25821/cx25821-alsa.c
> @@ -397,7 +397,7 @@ static int dsp_buffer_free(struct cx25821_audio_dev *chip)
> {
> struct cx25821_riscmem *risc = &chip->buf->risc;
>
> - BUG_ON(!chip->dma_size);
> + WARN_ON(!chip->dma_size);
>
> dprintk(2, "Freeing buffer\n");
> cx25821_alsa_dma_unmap(chip);
> @@ -509,8 +509,8 @@ static int snd_cx25821_hw_params(struct snd_pcm_substream *substream,
> chip->num_periods = params_periods(hw_params);
> chip->dma_size = chip->period_size * params_periods(hw_params);
>
> - BUG_ON(!chip->dma_size);
> - BUG_ON(chip->num_periods & (chip->num_periods - 1));
> + WARN_ON(!chip->dma_size);
> + WARN_ON(chip->num_periods & (chip->num_periods - 1));
>
> buf = kzalloc_obj(*buf);
> if (NULL == buf)
>
> ---
> base-commit: 0257f64bdac7fdca30fa3cae0df8b9ecbec7733a
> change-id: 20260314-media-52caee1b1f7f
>
> Best regards,
prev parent reply other threads:[~2026-03-19 14:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-13 20:32 Atharv Dubey
2026-03-19 14:41 ` Atharv Dubey [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a5887e4c-6333-4a3f-9ad4-5ba106c0ef30@gmail.com \
--to=atharvd440@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®