From 7304e2f1f3f2f2d81bd84ac4592bab1e4639d918 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Thu, 22 Nov 2012 16:23:22 +0100 Subject: [PATCH] --- yaml --- r: 342610 b: refs/heads/master c: 7009fa568b126a07b2de8ead103e378534453830 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/sound/pci/ymfpci/ymfpci_main.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index d80d4a0c770c..7d237665bb83 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e39ae8564410b8ad9057130ba71eeb6b1ef71d82 +refs/heads/master: 7009fa568b126a07b2de8ead103e378534453830 diff --git a/trunk/sound/pci/ymfpci/ymfpci_main.c b/trunk/sound/pci/ymfpci/ymfpci_main.c index 3a6f03f9b02f..60e8cb24bd44 100644 --- a/trunk/sound/pci/ymfpci/ymfpci_main.c +++ b/trunk/sound/pci/ymfpci/ymfpci_main.c @@ -25,7 +25,6 @@ #include #include #include -#include #include #include @@ -2261,7 +2260,7 @@ static int snd_ymfpci_free(struct snd_ymfpci *chip) #endif #ifdef CONFIG_PM_SLEEP - vfree(chip->saved_regs); + kfree(chip->saved_regs); #endif if (chip->irq >= 0) free_irq(chip->irq, chip); @@ -2471,7 +2470,8 @@ int __devinit snd_ymfpci_create(struct snd_card *card, } #ifdef CONFIG_PM_SLEEP - chip->saved_regs = vmalloc(YDSXGR_NUM_SAVED_REGS * sizeof(u32)); + chip->saved_regs = kmalloc(YDSXGR_NUM_SAVED_REGS * sizeof(u32), + GFP_KERNEL); if (chip->saved_regs == NULL) { snd_ymfpci_free(chip); return -ENOMEM;