Received: by 10.223.185.116 with SMTP id b49csp718425wrg; Wed, 21 Feb 2018 05:55:14 -0800 (PST) X-Google-Smtp-Source: AH8x225bz2gHG8tCNCyYl2WZJ0Vea4gr6S0qNG9Vd/8VIBhth6eHLiPdwtdwcurndXOrhvXMHk+q X-Received: by 2002:a17:902:243:: with SMTP id 61-v6mr3238858plc.202.1519221314810; Wed, 21 Feb 2018 05:55:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519221314; cv=none; d=google.com; s=arc-20160816; b=riWKDuSxXVmbM3E7wuMeCF0lpKbFImBSUGTNtrZ7crETSZ4mdBwsgIz8dMXqgZal2y mdUv39jWyC1JvPGDJQ4ksTv9vE0foYubBVccynHYv2mZr53JRXOi4Dx8jeDgxsS7oQbZ zPmwbP9xxtZK2DaGRgbzzBVLjA/Dcv/Jccw7chuqVW0x73enfOde5um/TTAACcyPt4Mv XAQs0Q/yYy/xdH3FA0Ja9yvspCl4lQ4aa6bQPQbmPuEPDXUfr231lxuiHH0tPzlAv/zw hxrrl8eC5SGF+8IQ1ZzZDZmANhgBCq4d3THC441Qo3sS8mN6BI97D1FM8nftW7RtmsHr yYQA== 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=k+t8u7JcVsvl0giMpyL8IaxN3/83a3sYGmRRYgX4CS4=; b=U37T7SQlQM0YOPv4nZTTA8dIf0JM2ho0evoF95dG7ARrEfkxbgSZHgX94gboPTtnCz SJFeN1F0/ixffEzjPwA1ysJJpqUeyvBInALpdUsJ9dr3KNxt/ywshhKwTgYGuclEQ9IQ tOjGlZ0t45JWeJzQvUmSrK7e8Y59fRi3wwI1Brksm7GAyeD8lPvupiNhvbzIieJ72lJ/ F1ZiRXlgsyaJZIRVYXxCgM/OGmvbEwPD0G5judHZGllvpqrPhHmmBxcN0zKkaiHu3ar+ SLZVhK8m5xbngwadC0zcnIvaEl9FVRm97AxjSfAvzN51bFwpbQomqTE5UueUPltCkYC4 Jh9A== 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 w18-v6si9793139pll.602.2018.02.21.05.55.00; Wed, 21 Feb 2018 05:55:14 -0800 (PST) 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 S937081AbeBUNl5 (ORCPT + 99 others); Wed, 21 Feb 2018 08:41:57 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:41646 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753487AbeBUNHc (ORCPT ); Wed, 21 Feb 2018 08:07:32 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4A04DFD5; Wed, 21 Feb 2018 13:07:31 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Artem Savkov , Corentin Labbe , Herbert Xu Subject: [PATCH 4.15 044/163] crypto: sun4i_ss_prng - fix return value of sun4i_ss_prng_generate Date: Wed, 21 Feb 2018 13:47:53 +0100 Message-Id: <20180221124532.814246374@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180221124529.931834518@linuxfoundation.org> References: <20180221124529.931834518@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: Artem Savkov commit dd78c832ffaf86eb6434e56de4bc3bc31f03f771 upstream. According to crypto/rng.h generate function should return 0 on success and < 0 on error. Fixes: b8ae5c7387ad ("crypto: sun4i-ss - support the Security System PRNG") Signed-off-by: Artem Savkov Acked-by: Corentin Labbe Signed-off-by: Herbert Xu Signed-off-by: Greg Kroah-Hartman --- drivers/crypto/sunxi-ss/sun4i-ss-prng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/crypto/sunxi-ss/sun4i-ss-prng.c +++ b/drivers/crypto/sunxi-ss/sun4i-ss-prng.c @@ -52,5 +52,5 @@ int sun4i_ss_prng_generate(struct crypto writel(0, ss->base + SS_CTL); spin_unlock(&ss->slock); - return dlen; + return 0; }