Received: by 10.223.176.5 with SMTP id f5csp1136727wra; Tue, 6 Feb 2018 13:23:23 -0800 (PST) X-Google-Smtp-Source: AH8x225EBum+ikw8wICJQZtI8I2hrdPtoy4Tigex1BJnnQk/hzfEFGUQS7MV33AUvXibC2zx7nsG X-Received: by 10.98.137.6 with SMTP id v6mr334581pfd.179.1517952202959; Tue, 06 Feb 2018 13:23:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517952202; cv=none; d=google.com; s=arc-20160816; b=ghe3DOMBdK+HGScegFuvbsZUnw4X5Iu/mk4kxaka+Pv5+cCpGHhYdHtQ1/qLuXIJde pUlfLk6u4jxOuR+UXclhI7AHEWPc5GpMgsLcWK1YnTE5CmE5K3MK/aj14seSZF3GHaiL gPqjhQjZErTv+iK+L+J2LQ9eW32YMU7rfVbQiOvDAvNkjYYoXc/5PT1GjbOa8Y7+YGQi 67YGijUCMHUEQrrDapG3ijwbhGJCRxAkXJ6fjccxr+d/gYxTyS7xfGCtg2gsW9hzBafh z56jVLLYBpDmqboTAjkTQx534SvUSPaLRmI98pkw0wA/Kp0ZLfnt3d57RyxOcsD4WJLh cCLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=ssf7NxCX3UZpyQhAkVg7gk9eiP/JTZpoK4LJm7nf/h4=; b=rM15YA75GZf235MP6NsoIsUvceGgnpqt5mDk6ztYdgxMmR5aNZ+3Wgg2Og7iqH6CRs iz6R9BLQERJJ/lABP9HwzD2imF6dFYK6pHdFkBhWPDm4/Y8Un6UYZ5oqVtoPIBSlQ5wY 3uiEsSAMt3SaIF4Hru1aiPOHqX+ndnzaJvMgdgWskyI6Mpz7W3gYuCGByI3kRhwGIsN6 R56TKE79WXWmJ2UCIoNDyDsKr3gd7rfZgElm6on5YAvWqlNNIxghbjnZMOedBG7jIsd+ dp+6mSx7X5PWK28ihwko7WsOt/uIIs1x0y+GSTmAAaIhRuWf72sMyDVKD0y11mpX0qPp iG/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ND/lnU41; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7-v6si1627447plh.806.2018.02.06.13.23.08; Tue, 06 Feb 2018 13:23:22 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ND/lnU41; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754089AbeBFVVC (ORCPT + 99 others); Tue, 6 Feb 2018 16:21:02 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35583 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753397AbeBFVUf (ORCPT ); Tue, 6 Feb 2018 16:20:35 -0500 Received: by mail-wm0-f67.google.com with SMTP id r78so6644708wme.0; Tue, 06 Feb 2018 13:20:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ssf7NxCX3UZpyQhAkVg7gk9eiP/JTZpoK4LJm7nf/h4=; b=ND/lnU41m7ykx6NeT98cXW1TwsZLM313smn/nWeSfDzewJdrEQkEwDDarSN8b1Vp7g Tyhm4N73KlL8Hno+LXLdNIWFews8WAi+hhIwGce7V5rtJOoXcNH48ekwU7WvIHdzkOmz b/r2Q7JN2Bwn73DvLKfDu/J/nM5JXiPwkbU5ytBKTcII5zz8FsSW7eU0XSU5U+cNOunD fXANd5pihUd1RHNAAF8hm3WDxUrynOdtDE1YeHkYvSx756mJowKWprttYRRzKhL/QCb0 08zT67SJkNc0KMWaHliOKVzIPgjsfGBJma7O43EexRX1BWRIv0MeIVJSFhttARGx0Oga mlfQ== 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:in-reply-to :references; bh=ssf7NxCX3UZpyQhAkVg7gk9eiP/JTZpoK4LJm7nf/h4=; b=H6Lfu13jGiVa5mVXZwJSORJels+ZoZaxFWqPBCFCo6huyePEAaoDfT3ksEbc9VAELb toZz4EKSppOI1S0hq+sSDRMexTEaCg6wotlN+533IvZ/px7wj86hcyDslw6EtFTIn3GH fVyfSFYY87bw1E9UIw5R5+ussoM9g+nvbgN9UA9FDzPVqIc368HQ/aX/PkJcMPTXy3Bm Z9SEZbxIlr0GZi0uzLkWsZwtnS7Gi8a354GHkqTpEnp+huirWT9r+FxY9GVRtg+073wx 4Y6vDuqn62yOWBM1ZiZAymShasclM7e7hzcsF9l1NrsXOJi3HL+s9+LnOdJAltfS+o9W gFEQ== X-Gm-Message-State: APf1xPCediU0d9FeQxAOGWqVTD19N3pFcONWXmlIovFhQ4wA3yMVBbgK EgNZTZv2ms6YZxRBGzZYU3FLkTkB X-Received: by 10.28.137.85 with SMTP id l82mr3032377wmd.109.1517952034406; Tue, 06 Feb 2018 13:20:34 -0800 (PST) Received: from localhost ([176.74.128.122]) by smtp.gmail.com with ESMTPSA id g13sm10409345wrh.51.2018.02.06.13.20.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Feb 2018 13:20:33 -0800 (PST) From: Artem Savkov To: Corentin Labbe Cc: Herbert Xu , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Artem Savkov Subject: [PATCH 1/2] sun4i_ss_prng: fix return value of sun4i_ss_prng_generate Date: Tue, 6 Feb 2018 22:20:21 +0100 Message-Id: <20180206212022.1309-2-artem.savkov@gmail.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180206212022.1309-1-artem.savkov@gmail.com> References: <20180206212022.1309-1-artem.savkov@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/crypto/sunxi-ss/sun4i-ss-prng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/sunxi-ss/sun4i-ss-prng.c b/drivers/crypto/sunxi-ss/sun4i-ss-prng.c index 0d01d1624252..5754e0b92fb0 100644 --- 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_rng *tfm, const u8 *src, writel(0, ss->base + SS_CTL); spin_unlock(&ss->slock); - return dlen; + return 0; } -- 2.15.1