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: 10885549 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 73497922 for ; Thu, 4 Apr 2019 12:39:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56C2C286DA for ; Thu, 4 Apr 2019 12:39:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4AB982878F; Thu, 4 Apr 2019 12:39:44 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7CBEA286DA for ; Thu, 4 Apr 2019 12:39:43 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 6850B15EE; Thu, 4 Apr 2019 14:38:51 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6850B15EE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1554381581; bh=uENH29TkgoT/Qa1HqoTpKBhhkX4tkJKi53g65nbSLYc=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=h+hTeYtLPfqqlyykKnUjNxPyEfPd+CwFxdoeH4vgZKO1GnFETamHF6X79MhzoKYj7 h2rXpmXObmZRs0BvqZryBxdoz7Qzcj45aoGo4PVdNYBWN3QnK7P3aNccdrlODVSLGZ ZzK+xpRjOQepEJExb1uyk+utcYd3nJ7Praq4Zq6Y= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id D4DF6F8071D; Thu, 4 Apr 2019 14:38:50 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3CFDBF89633; Thu, 4 Apr 2019 14:38:49 +0200 (CEST) Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id B5883F8071D for ; Thu, 4 Apr 2019 14:38:46 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B5883F8071D Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KEcwXf5A" Received: by mail-lf1-x142.google.com with SMTP id u21so1702929lfu.2 for ; Thu, 04 Apr 2019 05:38:46 -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=BLWI8FC5o+AdgU2tHjv4X3ql+TFoQ0hnd2q/XnOTFqCYxFIaWHKPlBf84uNgA8L658 UXRVSr4tfrbEZrBsOJcWnzjJtJo4LvyiIyQvUC31unexpY55unTNILDJgWSW1aT16ytg MAM3HE6dJhmPRephfZo9LW9mXtWJOJJPp1dCUoKlvGLeciAp3Uo0X9RzdUkCv1vRH9PE PoG2A6ix/judgF0eYAKkKsIWTJVD9GPga96do/scRsCY01DQ+ewGq+rBA4BZQxotCMYN k5NBow/jPHet6uflPHAzx5I4loH4jz2PfELnx/gDooWR3XSVe8OEHP5T462vRTdRYLoc Tu1A== X-Gm-Message-State: APjAAAV5RtcNqWRaesZ+BllCQAbOp+Wr3qRauLprrfE4FQrywiaTAO0n lTFXnriXIijSvyFEp6IaMJ0= 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 Cc: andr2000@gmail.com, Oleksandr Andrushchenko Subject: [alsa-devel] [Xen-devel][PATCH] ALSA: xen-front: Do not use stream buffer size before it is set X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-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;