diff options
Diffstat (limited to 'sound/pci/maestro3.c')
-rw-r--r-- | sound/pci/maestro3.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/pci/maestro3.c b/sound/pci/maestro3.c index 8f20dec97843..224e942f556d 100644 --- a/sound/pci/maestro3.c +++ b/sound/pci/maestro3.c | |||
@@ -2657,7 +2657,10 @@ snd_m3_create(struct snd_card *card, struct pci_dev *pci, | |||
2657 | chip->irq = pci->irq; | 2657 | chip->irq = pci->irq; |
2658 | 2658 | ||
2659 | #ifdef CONFIG_PM_SLEEP | 2659 | #ifdef CONFIG_PM_SLEEP |
2660 | chip->suspend_mem = vmalloc(sizeof(u16) * (REV_B_CODE_MEMORY_LENGTH + REV_B_DATA_MEMORY_LENGTH)); | 2660 | chip->suspend_mem = |
2661 | vmalloc(array_size(sizeof(u16), | ||
2662 | REV_B_CODE_MEMORY_LENGTH + | ||
2663 | REV_B_DATA_MEMORY_LENGTH)); | ||
2661 | if (chip->suspend_mem == NULL) | 2664 | if (chip->suspend_mem == NULL) |
2662 | dev_warn(card->dev, "can't allocate apm buffer\n"); | 2665 | dev_warn(card->dev, "can't allocate apm buffer\n"); |
2663 | #endif | 2666 | #endif |