Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 342610
b: refs/heads/master
c: 7009fa5
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Nov 22, 2012
1 parent e2a2672 commit 7304e2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e39ae8564410b8ad9057130ba71eeb6b1ef71d82
refs/heads/master: 7009fa568b126a07b2de8ead103e378534453830
6 changes: 3 additions & 3 deletions trunk/sound/pci/ymfpci/ymfpci_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <linux/pci.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/mutex.h>
#include <linux/module.h>

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7304e2f

Please sign in to comment.