diff options
author | Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> | 2019-04-04 08:38:38 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-04-04 08:44:18 -0400 |
commit | 8b030a57e35a0efc1a8aa18bb10555bc5066ac40 (patch) | |
tree | 72df77c0288eadcd143a94f1e48859dfdf7a3ff2 /sound/xen | |
parent | 80690a276f444a68a332136d98bfea1c338bc263 (diff) |
ALSA: xen-front: Do not use stream buffer size before it is set
This fixes the regression introduced while moving to Xen shared
buffer implementation.
Fixes: 58f9d806d16a ("ALSA: xen-front: Use Xen common shared buffer implementation")
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Cc: <stable@vger.kernel.org> # v5.0+
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/xen')
-rw-r--r-- | sound/xen/xen_snd_front_alsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/xen/xen_snd_front_alsa.c b/sound/xen/xen_snd_front_alsa.c index a7f413cb704d..b14ab512c2ce 100644 --- a/sound/xen/xen_snd_front_alsa.c +++ b/sound/xen/xen_snd_front_alsa.c | |||
@@ -441,7 +441,7 @@ static int shbuf_setup_backstore(struct xen_snd_front_pcm_stream_info *stream, | |||
441 | { | 441 | { |
442 | int i; | 442 | int i; |
443 | 443 | ||
444 | stream->buffer = alloc_pages_exact(stream->buffer_sz, GFP_KERNEL); | 444 | stream->buffer = alloc_pages_exact(buffer_sz, GFP_KERNEL); |
445 | if (!stream->buffer) | 445 | if (!stream->buffer) |
446 | return -ENOMEM; | 446 | return -ENOMEM; |
447 | 447 | ||