Received: by 10.192.165.156 with SMTP id m28csp69989imm; Tue, 10 Apr 2018 16:37:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/m+X4MFTv0S+vE0jLxpPoVk2YsbfR7iaQvnj6r6pCXoJsVSMen9DVfEVJdxcv7c3JMW/cH X-Received: by 2002:a17:902:a9c2:: with SMTP id b2-v6mr2475493plr.181.1523403478824; Tue, 10 Apr 2018 16:37:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523403478; cv=none; d=google.com; s=arc-20160816; b=E8605MjKeqLrLlzA1pB0+DB1i4oqGLP5AKMBaH4ogN611skCQwP006UBtuSj+cHTgx N6Me4E73XahuP/TNtHeUBRSpx13R/D9/sG6fyprV0M1KkNhur3qG0wxsnTPg2GfNq/kq 71dgOTO+SNLVCRWRiIGgEDfvkNVCCHCE/TEjxBY9+Y5dHh18ZSX2gTvTkKd4c0ALIfrO qUDjlTRKMwBsO49WBRt0dsXaoTq18mCeB+ttkw92DkaHBp3z9NZY2Nt4y32I3XTVbVFP dIO1IaGEIx5jdJxeUi6BjKpXS+Ii2QQ3wQaP+7Gg6FpYPQjPqHyeBoOMrmgmEGJ7NXyO GW3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=2hGT2r7OhZckF8CgkdpQyujHX9wytnH+bmL5cqIuRv0=; b=uMgj/5O8MuSpH6pS0/+MQd4hnTwQAffs6KkZ+T/03QxEWi9ssQeJaQ7bihaLW/5Q+L Ah65f8CuF2IGI9RMi46+uK/qdWcXO6GpajypeObOSlkNjTjhczI3+7e+LNNxks6LO45u IXSveXt0zq91FrNfoOJ7vL8diPrBRxgsArjOO1KVa+DsZ55X2jP0jFjskCTTZiC2pxiv zFeITn7+SPeOYsIhP63qCjh0Gi6Bt3Zs8DFlLN/yVFksY3q/zKS9OeKZZIsOm9kpXxOj PSoJIcEswRlQjK2zkUdfb7OhXEI7nczYNaOQReGmr8NVCnUICe5XrE+Vc3yxNoH41wlz gQrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x10-v6si1451182pln.479.2018.04.10.16.37.22; Tue, 10 Apr 2018 16:37:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754091AbeDJW2i (ORCPT + 99 others); Tue, 10 Apr 2018 18:28:38 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39150 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752840AbeDJW2g (ORCPT ); Tue, 10 Apr 2018 18:28:36 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 82E61D09; Tue, 10 Apr 2018 22:28:35 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Mark Brown , Sasha Levin Subject: [PATCH 4.15 063/168] ASoC: Intel: sst: Fix the return value of sst_send_byte_stream_mrfld() Date: Wed, 11 Apr 2018 00:23:25 +0200 Message-Id: <20180410212802.879658066@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212800.144079021@linuxfoundation.org> References: <20180410212800.144079021@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Christophe JAILLET [ Upstream commit eaadb1caa966a91128297b754e90b7c92b350a00 ] In some error handling paths, an error code is assiegned to 'ret'. However, the function always return 0. Fix it and return the error code if such an error paths is taken. Fixes: 3d9ff34622ba ("ASoC: Intel: sst: add stream operations") Signed-off-by: Christophe JAILLET Signed-off-by: Mark Brown Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- sound/soc/intel/atom/sst/sst_stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/soc/intel/atom/sst/sst_stream.c +++ b/sound/soc/intel/atom/sst/sst_stream.c @@ -220,7 +220,7 @@ int sst_send_byte_stream_mrfld(struct in sst_free_block(sst_drv_ctx, block); out: test_and_clear_bit(pvt_id, &sst_drv_ctx->pvt_id); - return 0; + return ret; } /*