Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1573750pxb; Sat, 29 Jan 2022 09:58:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJw0VyUzh1ORv5IFfjvHiMGa8MqXQdwLWh6jburtkqxgataeA+iYWPN1DHGfrK5KU9S383gT X-Received: by 2002:a17:907:2da7:: with SMTP id gt39mr11505509ejc.563.1643479094490; Sat, 29 Jan 2022 09:58:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643479094; cv=none; d=google.com; s=arc-20160816; b=Ko9hwgNm2145hXUwwspLGkbf5q/Utp5QyyUQnwASDNumrLq3yyVVFzbQCMgwsm3WEn 9MFS+Coam1anFdCF/AVS/t3+HPmQnbdVHyACRHgl9agUPDGF7GkZfVwaJTvsLrY7w1Ly 4161mxC3twvnAsTjaE/i0CTcFjyHkw7n/Z11NQSFuvF6td+hTBrpn5t2r646wywmUYZN F/qNYwLN66Dm8ZJK0oqpwDNFX0NqO+vaDtn1lCZJzSGm0DQRDWM3tuDstsaSM8DVGSkX 1uWMnJpEeoiU0tZix6jXWg0qCu2Bxx6LsI/64hx6QhM7n8EOESZkk13F+wGzub/lHjdq t2xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=0t1V4zvmNPJT9wYj/Pd8jJat58ip8FOEKuqF28wuRD4=; b=1FB4YOTz5so2in9D/OxJhnX+zJHV7JHQi8J5GkSom9cAR44e664MjmIEN8e7+On8T+ 8XctDKxzybatgysmqZeCU7GDFxgAN0M6QN3oBjK5/6JsPqG/uOkS2kkMdzL6zEdgGniS E+z/4yaKOwH1WqZtLcIyyWQl+bqi8pc+BJSr5/A5C2ZdLmSBFysEpI8gL0p1c+u55vhi ipMPWS9ZdUBiEUDhKYL4Udt4CRP89EOq3H/qyvpWVDfK1WXZEYuflKPsEGPpEm9adzM8 3yiZcAeI3bgrGrh98yXoSZVhRBzK61osdQPWjiL7CzFs3RfHcJtj+BRFJ7yOQQZDCIKV rJJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="FyJ2/j2w"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a13si5157733edn.508.2022.01.29.09.57.49; Sat, 29 Jan 2022 09:58:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="FyJ2/j2w"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346335AbiA1GRd (ORCPT + 99 others); Fri, 28 Jan 2022 01:17:33 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:33878 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346329AbiA1GRb (ORCPT ); Fri, 28 Jan 2022 01:17:31 -0500 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 59FEE4000F for ; Fri, 28 Jan 2022 06:17:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643350650; bh=0t1V4zvmNPJT9wYj/Pd8jJat58ip8FOEKuqF28wuRD4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=FyJ2/j2wgzrB4h9LmTBiQO7jB3URILRuw7et+JxYY6p/3Ii4ogyi/VupkdKNEfoyx C2Osh0A+OLKDLiWWO1Q4DuquXp8cNh1YM8WqKggfMkXhZtUABhoBUsTQ4EOTF8lGWj Hd4g6CI1JGwqDV+HI3PtkIGPni2VhnyIDbOag2S0xU9DLjv0cHgOp+bJ34BzYR22Vb Zw5H332OMbjxYRb8nNUy0KOh7v4N4OGJaaNqkIJlSEZRydhcdX6cYprI9J14Szybc2 O7FMMKQ0J2VegHe8DK49iorVSjqdZVZUZW1g8aVhBX4xO4BKhFNlxaH3bCVDv0cpM9 Q1p1q3VIhrSMg== Received: by mail-wr1-f70.google.com with SMTP id w19-20020adf8bd3000000b001df887ad0caso531018wra.18 for ; Thu, 27 Jan 2022 22:17:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=0t1V4zvmNPJT9wYj/Pd8jJat58ip8FOEKuqF28wuRD4=; b=fD1bCdG5WlPnnlLOF3FEsX1M6M0IIBc+RVKhgX9Q/n2pl+tMwp893Zz/RjOX1+g5fQ rpcQdu8ndvCasLlmZvJqx65DHds1ys1D9nFDUrr7fTq4Jbb/94Gl8IW81mYi2ZmTL+TT mgtOlGEsOhIUX1caCo21L0w2dzUoKEHysJ3CMpZyEH3DZ+NYqy6cWJPw37gHjzhPoV3b 4yj+jdxuPW4qtz8QDrJLQyu3s2+/O7bjR83eUxa8Wnyzvlsc+CfglILGaXOLsiwuKdYx 0p6hKWCn6/Z4APUd/0Q5UsgKSpY+oYe8LtLCJlDxNhvqcwpb7SzdU5jlOP0k8wQ8cC6n TcrQ== X-Gm-Message-State: AOAM532Fl4c3QJ/hAmYR/LMyTw/FWJLBqMqKWtrxJP6LQM80yKjfTmlP R4ylt3ErKbtKpuQuQz4HO8v1cWKBrtDiH8D7RIv7agMtHhC9dbG3x/IYIUaVA5LBFiTSa+acJlU RzNMQ0W5CC4fTS5jYFmDyQ52aOilmdJpSOkD9lYK2TQ== X-Received: by 2002:adf:fb05:: with SMTP id c5mr5875251wrr.220.1643350649374; Thu, 27 Jan 2022 22:17:29 -0800 (PST) X-Received: by 2002:adf:fb05:: with SMTP id c5mr5875223wrr.220.1643350649139; Thu, 27 Jan 2022 22:17:29 -0800 (PST) Received: from [192.168.123.94] (ip-088-152-144-107.um26.pools.vodafone-ip.de. [88.152.144.107]) by smtp.gmail.com with ESMTPSA id m6sm1158698wmq.6.2022.01.27.22.17.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Jan 2022 22:17:28 -0800 (PST) Message-ID: <6cd57022-6fe3-d065-dbe3-e9487894a94c@canonical.com> Date: Fri, 28 Jan 2022 07:17:27 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] riscv/efi_stub: Fix get_boot_hartid_from_fdt() return value Content-Language: en-US To: Sunil V L Cc: linux-efi@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Anup Patel , stable@vger.kernel.org, Albert Ou , Paul Walmsley , Atish Patra , Palmer Dabbelt , Ard Biesheuvel References: <20220128045004.4843-1-sunilvl@ventanamicro.com> From: Heinrich Schuchardt In-Reply-To: <20220128045004.4843-1-sunilvl@ventanamicro.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/28/22 05:50, Sunil V L wrote: > The get_boot_hartid_from_fdt() function currently returns U32_MAX > for failure case which is not correct because U32_MAX is a valid > hartid value. This patch fixes the issue by returning error code. > > Fixes: d7071743db31 ("RISC-V: Add EFI stub support.") > Cc: stable@vger.kernel.org > > Signed-off-by: Sunil V L Reviewed-by: Heinrich Schuchardt