OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c4f09c
)
ALSA: au88x0: Fix incorrect device pointer for preallocation
author
Takashi Iwai
<tiwai@suse.de>
Tue, 12 Nov 2019 14:32:43 +0000
(15:32 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 12 Nov 2019 14:33:52 +0000
(15:33 +0100)
The code change in commit
6974f8ad4494
("ALSA: pci: Avoid non-standard
macro usage") contained an incorrect conversion, which left the
invalid pointer passed to the allocator for au88x0 driver. Fix it.
Fixes:
6974f8ad4494
("ALSA: pci: Avoid non-standard macro usage")
Link:
https://lore.kernel.org/r/20191112143243.22216-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/au88x0/au88x0_pcm.c
patch
|
blob
|
history
diff --git
a/sound/pci/au88x0/au88x0_pcm.c
b/sound/pci/au88x0/au88x0_pcm.c
index
1012e8d
..
a2dcf43
100644
(file)
--- a/
sound/pci/au88x0/au88x0_pcm.c
+++ b/
sound/pci/au88x0/au88x0_pcm.c
@@
-637,7
+637,7
@@
static int snd_vortex_new_pcm(vortex_t *chip, int idx, int nr)
/* pre-allocation of Scatter-Gather buffers */
snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG,
- &chip->pci_dev,
+ &chip->pci_dev
->dev
,
0x10000, 0x10000);
switch (VORTEX_PCM_TYPE(pcm)) {