Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2257764imm; Thu, 18 Oct 2018 11:31:47 -0700 (PDT) X-Google-Smtp-Source: ACcGV62q6UX91AFF+anD2I5YVy8dOB/+QD1MKnuT1W8fMg8NITV5tSrDGAG9g86BonmXIBADGaH3 X-Received: by 2002:a65:60c9:: with SMTP id r9-v6mr10182085pgv.285.1539887507831; Thu, 18 Oct 2018 11:31:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539887507; cv=none; d=google.com; s=arc-20160816; b=hXNRyUmMyK2KLp8Q0EXKAnZfvN1i2h11gLlmG+qbDOowOypy8f4gC4vFrgNkWdocl+ 3+87ignh+S1y8y6nC+7Fx1E+AbIxjrTQV4g8r1VXE16rYltRKSaEEVURaTdRbKu4pZhD +j7Ube6peudvqh3r/T0bzsaTs99r8UcwMNIcRTe5nez/ptsNxNyliGRBI3miW42xr4kf l0HBwozrUgY/hhPjT0Il3Na5U5bP3UpwLjUd8ECmQmJr/waD+2I1KhIP0zxl7nommm+c ZDS7TaEYSaWuDDYErxXKyPH//nkeR4iWtNPjE4TdWshaJHQoAiX23x6XiuB7PBv4RAak 93oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=q4Vyu8FmRN81tt882jpdvdywE84gOlq4VXPx3UkxzZI=; b=g7Dd6GOOvNP9Y3JXTjrWlwFurhSQ2HkdtIHltegISrGmwzjeY2bNr+09h+kr/naSJu IIoKcHLF0d4hg91aaUMHtpe5kpccB3oCUEPAqAx7nuYuoPa2aqcw8oyQLK9uc5bqH7xA d61niqJQdyjeX4DGa8YA9/yJo4VjxnUGw78bTluHweEKaqK/m/hnTjQADmKrKzMdgDHh DHGh6a9c+3vg4ffPNeYHxIeahORETl/XVVIJhkdIcLK3grhklLpUURM2d6/qwv7WkoUL bdHU9KIGFOoUHZNsYxEa/oK77+EqkWQbups1Ly+RIcSYCjIIReIEaXt0BZiFvRDu5Tvk uf8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bmKtU0X8; 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 t90-v6si22094128pfi.221.2018.10.18.11.31.32; Thu, 18 Oct 2018 11:31:47 -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; dkim=pass header.i=@kernel.org header.s=default header.b=bmKtU0X8; 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 S1730285AbeJSCHd (ORCPT + 99 others); Thu, 18 Oct 2018 22:07:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:56224 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728791AbeJSCHc (ORCPT ); Thu, 18 Oct 2018 22:07:32 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 851B2204FD; Thu, 18 Oct 2018 18:05:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539885925; bh=q5+Um497V+gdNjV8GcEMY88jcnknYW/2RQ0EdTJ7OLo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bmKtU0X8r5j5lRoxY3iWQ2dpofosrTvJfZeQQRotuNyz1RGIg5vtC4gY6sHCGmc2+ 2EQG0liprJIGJNuJcYjv2YYNGwh+4VXEXeYopxsP02WxL8OdQGsI65bGl+hnKZYyEb znSwBaJReHURVMVVm6y3m4TwfRiIdhj7sgc1SUhU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Danny Smith , Lars-Peter Clausen , Mark Brown , Sasha Levin Subject: [PATCH 4.4 02/48] ASoC: sigmadsp: safeload should not have lower byte limit Date: Thu, 18 Oct 2018 19:54:37 +0200 Message-Id: <20181018175427.748988586@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181018175427.133690306@linuxfoundation.org> References: <20181018175427.133690306@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Danny Smith [ Upstream commit 5ea752c6efdf5aa8a57aed816d453a8f479f1b0a ] Fixed range in safeload conditional to allow safeload to up to 20 bytes, without a lower limit. Signed-off-by: Danny Smith Acked-by: Lars-Peter Clausen Signed-off-by: Mark Brown Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- sound/soc/codecs/sigmadsp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/sound/soc/codecs/sigmadsp.c +++ b/sound/soc/codecs/sigmadsp.c @@ -117,8 +117,7 @@ static int sigmadsp_ctrl_write(struct si struct sigmadsp_control *ctrl, void *data) { /* safeload loads up to 20 bytes in a atomic operation */ - if (ctrl->num_bytes > 4 && ctrl->num_bytes <= 20 && sigmadsp->ops && - sigmadsp->ops->safeload) + if (ctrl->num_bytes <= 20 && sigmadsp->ops && sigmadsp->ops->safeload) return sigmadsp->ops->safeload(sigmadsp, ctrl->addr, data, ctrl->num_bytes); else