Skip to content

Commit

Permalink
ALSA: xen-front: Do not use stream buffer size before it is set
Browse files Browse the repository at this point in the history
This fixes the regression introduced while moving to Xen shared
buffer implementation.

Fixes: 58f9d80 ("ALSA: xen-front: Use Xen common shared buffer implementation")
Reviewed-by: Juergen Gross <[email protected]>
Signed-off-by: Oleksandr Andrushchenko <[email protected]>
Cc: <[email protected]> # v5.0+
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Oleksandr Andrushchenko authored and tiwai committed Apr 4, 2019
1 parent 80690a2 commit 8b030a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/xen/xen_snd_front_alsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ static int shbuf_setup_backstore(struct xen_snd_front_pcm_stream_info *stream,
{
int i;

stream->buffer = alloc_pages_exact(stream->buffer_sz, GFP_KERNEL);
stream->buffer = alloc_pages_exact(buffer_sz, GFP_KERNEL);
if (!stream->buffer)
return -ENOMEM;

Expand Down

0 comments on commit 8b030a5

Please sign in to comment.