From patchwork Thu Apr 4 12:38:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Andrushchenko X-Patchwork-Id: 10885551 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 081441669 for ; Thu, 4 Apr 2019 12:40:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E66B528727 for ; Thu, 4 Apr 2019 12:40:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DAF7F28A71; Thu, 4 Apr 2019 12:40:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 91C3D28A6E for ; Thu, 4 Apr 2019 12:40:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hC1dq-0008Tg-6m; Thu, 04 Apr 2019 12:38:50 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hC1do-0008Tb-Pu for xen-devel@lists.xenproject.org; Thu, 04 Apr 2019 12:38:48 +0000 X-Inumbo-ID: 96eab1e9-56d6-11e9-92d7-bc764e045a96 Received: from mail-lf1-x144.google.com (unknown [2a00:1450:4864:20::144]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 96eab1e9-56d6-11e9-92d7-bc764e045a96; Thu, 04 Apr 2019 12:38:47 +0000 (UTC) Received: by mail-lf1-x144.google.com with SMTP id y18so1708374lfe.1 for ; Thu, 04 Apr 2019 05:38:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MO+WUQgyk0fGmGUrJApa0TjmmOpQ1GmsMp7oVHESJt0=; b=KEcwXf5AwoxEg+WP2ECs6tpQqfMS1CZGTW9KcffY9kFcfTBSAn7HDdPg+bFa1UQ7e5 tfIgxAS6b9yWkiihNYHyuwD3FJhWvX/xjHf7vDzdxkRvEd03R/yxJ6Btpbxf6F+cCIAm lFjlL+uA/HP6YCe1JVcRPAeWj8e6y4fJEpHfMQI7OgtllapzITVv07uIRhpNMg+i7g2S p5oaZdte6XBJwGl29ncdJL5MZTEO2yXxDNZ/4SLh0PEX4wbmknyRqiF2VY0sMot+UWXR rjkE34vMtSwALmt4cjM+KNvjs6pvBrrrvggfgo++3ANbE3f26TYiTpVdxSQvNa4Ia26m umLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MO+WUQgyk0fGmGUrJApa0TjmmOpQ1GmsMp7oVHESJt0=; b=HD4Ul/IYIHLtJavQ+EB2X9KMGSloIPVMasTrT3TpEZSRfuLPoBqvd/BTHKADeFbBqu XmcfXX8X4EzBedYn81t41vFzSr49pgcYuazJifEVNYVgMQqNaVC617jEekRkvHJn6/XL o+Qs5j5Hxze1A287VDYfM6Iqf7cSdIdLoCJF4n5pAb1+x055R/fFOFUyKIR1h34mFekH FNe0lGTHNxocLbqNWgdKA5p4Ccf+QlfIXXXl+lq2vJ5z7uE5cG8v1z1cKGw3a8OH64sK uubQvOlrra2eMak3vu0++rk7kj84KqhQ4nAGIbklbmzhD3jTRPk+CKYEhn0UzXyMDnLS dGZA== X-Gm-Message-State: APjAAAVxOCcv+K+hCY5DCXXRMkIrkZ6jAW8fmfaCTBj0cul1piaL49by g7AWIvOeg1OB/qidncjzp1/jN3sQ X-Google-Smtp-Source: APXvYqwlOkPlsds7eyVgoKCz67wdxsMg0Mn4/isBTakGnJao/BoG+JoQlJz5dZ8MGKbduHS+GQxTSw== X-Received: by 2002:ac2:4ad1:: with SMTP id m17mr3186202lfp.129.1554381525503; Thu, 04 Apr 2019 05:38:45 -0700 (PDT) Received: from a2k-HP-ProDesk-600-G2-SFF.kyiv.epam.com (ll-22.209.223.85.sovam.net.ua. [85.223.209.22]) by smtp.gmail.com with ESMTPSA id w1sm3617299lfn.79.2019.04.04.05.38.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Apr 2019 05:38:44 -0700 (PDT) From: Oleksandr Andrushchenko To: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, jgross@suse.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, perex@perex.cz, tiwai@suse.com Date: Thu, 4 Apr 2019 15:38:38 +0300 Message-Id: <20190404123838.22162-1-andr2000@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH] ALSA: xen-front: Do not use stream buffer size before it is set X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: andr2000@gmail.com, Oleksandr Andrushchenko Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Oleksandr Andrushchenko This fixes the regression introduced while moving to Xen shared buffer implementation. Fixes: 58f9d806d16a ("ALSA: xen-front: Use Xen common shared buffer implementation") Signed-off-by: Oleksandr Andrushchenko Reviewed-by: Juergen Gross --- sound/xen/xen_snd_front_alsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, { 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;