Received: by 10.192.165.156 with SMTP id m28csp47035imm; Tue, 10 Apr 2018 16:06:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/78Po94S4VrsoWliS+bZJIAryUQ4h1enQm4FkxR5AZZGdsEHgJanW9skThpydGgnBW5tQJ X-Received: by 2002:a17:902:4324:: with SMTP id i33-v6mr2356391pld.379.1523401573756; Tue, 10 Apr 2018 16:06:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523401573; cv=none; d=google.com; s=arc-20160816; b=goIJmm+K2QaUul5uKQ9YW1jC4Jwgd0Uza1wQnKyWTDAEmjD15oldj+R5DRK37T2p5H FNzjb1ghRQHGM5HJWqOikImGvOnV7CUzboJUpZnM24syjnA7zcDTiE95/BxElQsQ7vIY GMnpJ49bBszijwMfdOCRbT7SXRJf0KHfO7/sGDLkdjtiTCI83qFSn2XCKS0lvmiwg+aU 0YSw6/Nto0Wnm8EutuY8PLHvVdMk7nhNmNNKigqx0Y2RwEOTyl3HtVNh34cUVkwEANYq N1kIu0K1vowiPYvps/bZ47azfT9z2cLhFINCgoC4lD26FvTwlo7MpMoUMza4wh223DX9 uydg== 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=i/AvWV2jDA6UxViYdmX/wj185ZrRn3hSbDhnZ1BdI6U=; b=QWVG4ToOawbGN8VobgZ6TbMOm7jwAG1sIe34wN1L0CdABP8jxv/FPdeLhwTrZ6HHFV OLRP4DNVEcP8CfDCF7TiI1j0/IrKlJqPOYBAU1VFe0MYF3OnI9X5Y7k5ml6eWa+9q7yS pCqI6AlDvXoshEIwFatlJ0sdSqWgnHd2khXHOIVKEBneTKofjTfM0+UC/mU9v2R6rKZ8 zYkD3nsWo0AjwHcCasuKG1H+e9LRNTR1yxuIbzoFcvx6awHurr+evMeA2FtRCqIWP7iY sxzm7vEX+vQiayE7V4qDqZjudxnqnEJS7QKu9AzdmCi7b8w7te9nn7zDrHUbzKbn3hP2 89TA== 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 65-v6si3448925plb.573.2018.04.10.16.05.37; Tue, 10 Apr 2018 16:06:13 -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 S932323AbeDJW5s (ORCPT + 99 others); Tue, 10 Apr 2018 18:57:48 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:42996 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755631AbeDJWgd (ORCPT ); Tue, 10 Apr 2018 18:36:33 -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 D6858E0C; Tue, 10 Apr 2018 22:36:31 +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.14 048/138] ASoC: Intel: sst: Fix the return value of sst_send_byte_stream_mrfld() Date: Wed, 11 Apr 2018 00:23:58 +0200 Message-Id: <20180410212907.679789760@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212902.121524696@linuxfoundation.org> References: <20180410212902.121524696@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.14-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 @@ -221,7 +221,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; } /*