From 3b9f7811d77e3e92ccb196e6efd5a75e7f2728fb Mon Sep 17 00:00:00 2001 From: Sander van Malssen Date: Wed, 1 Oct 2003 02:35:17 -0700 Subject: [PATCH] [PATCH] fix btaudio error case Free the right buffer on allocation error --- sound/oss/btaudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/oss/btaudio.c b/sound/oss/btaudio.c index 1bfb2170bc2d8..c8866da619364 100644 --- a/sound/oss/btaudio.c +++ b/sound/oss/btaudio.c @@ -178,7 +178,7 @@ static int alloc_buffer(struct btaudio *bta) bta->risc_cpu = pci_alloc_consistent (bta->pci, bta->risc_size, &bta->risc_dma); if (NULL == bta->risc_cpu) { - pci_free_consistent(bta->pci, bta->buf_size, bta->buf_cpu, bta->dma); + pci_free_consistent(bta->pci, bta->buf_size, bta->buf_cpu, bta->buf_dma); bta->buf_cpu = NULL; return -ENOMEM; } -- 2.53.0