diff options
| -rw-r--r-- | sound/pci/echoaudio/echoaudio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/echoaudio/echoaudio.c b/sound/pci/echoaudio/echoaudio.c index 1cb85aeb0cea..286f5e3686a3 100644 --- a/sound/pci/echoaudio/echoaudio.c +++ b/sound/pci/echoaudio/echoaudio.c | |||
| @@ -2200,11 +2200,11 @@ static int snd_echo_resume(struct device *dev) | |||
| 2200 | u32 pipe_alloc_mask; | 2200 | u32 pipe_alloc_mask; |
| 2201 | int err; | 2201 | int err; |
| 2202 | 2202 | ||
| 2203 | commpage_bak = kmalloc(sizeof(struct echoaudio), GFP_KERNEL); | 2203 | commpage_bak = kmalloc(sizeof(*commpage), GFP_KERNEL); |
| 2204 | if (commpage_bak == NULL) | 2204 | if (commpage_bak == NULL) |
| 2205 | return -ENOMEM; | 2205 | return -ENOMEM; |
| 2206 | commpage = chip->comm_page; | 2206 | commpage = chip->comm_page; |
| 2207 | memcpy(commpage_bak, commpage, sizeof(struct comm_page)); | 2207 | memcpy(commpage_bak, commpage, sizeof(*commpage)); |
| 2208 | 2208 | ||
| 2209 | err = init_hw(chip, chip->pci->device, chip->pci->subsystem_device); | 2209 | err = init_hw(chip, chip->pci->device, chip->pci->subsystem_device); |
| 2210 | if (err < 0) { | 2210 | if (err < 0) { |
