aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/via82xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/via82xx.c')
-rw-r--r--sound/pci/via82xx.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c
index 52d1074f8696..e329e19b674f 100644
--- a/sound/pci/via82xx.c
+++ b/sound/pci/via82xx.c
@@ -491,10 +491,8 @@ static int clean_via_table(viadev_t *dev, snd_pcm_substream_t *substream,
491 snd_dma_free_pages(&dev->table); 491 snd_dma_free_pages(&dev->table);
492 dev->table.area = NULL; 492 dev->table.area = NULL;
493 } 493 }
494 if (dev->idx_table) { 494 kfree(dev->idx_table);
495 kfree(dev->idx_table); 495 dev->idx_table = NULL;
496 dev->idx_table = NULL;
497 }
498 return 0; 496 return 0;
499} 497}
500 498