Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp5476986rdb; Sun, 31 Dec 2023 03:08:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IFIw/St3364z0H9JVAphF7ktSCspA+HoA/7sSxRAEu6463MW4MUf+NCaj0hIXUXJOBYcl55 X-Received: by 2002:a17:907:7f10:b0:a26:9ec0:e35 with SMTP id qf16-20020a1709077f1000b00a269ec00e35mr9679742ejc.135.1704020928740; Sun, 31 Dec 2023 03:08:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704020928; cv=none; d=google.com; s=arc-20160816; b=kcsOtOMjwCH2sNpwFqb0hpCliZkU+sfN7GvhfkhMSr3yV2MC6TnVSYlH5HvP1vQ9Cu VeTpfvVD4j5BRuxBRcVmiLKrw3M2src2N9qK6N/9nZlbcssVAGtHsZmDB3RG8KrUfr3O sSEufLBOxNGZ5y28PmhI8IEGve3VbkgERA6K3NHS4kS/8uWvvWkyGa4t581ace/WWFc5 aTCA32D/y4wlfoj2B2Z+nUZXXU8aGGP6l9+6OX0rKr3gIR6h1OZdKGFHsyq7l5zBXWLm /A6WiaEf5YcxXa1jaNdITbTjo0aZ8kXj64LljwvT+JCTAxHCFdqXNRif4sfaAOWn9OEx wrsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from; bh=gfkeZ+WPYG/pYc84hD5sNtydk7B5tEWvbSvKRNJbVeg=; fh=BNx+0gkXVwgC6LnKPPCa7LvPVvGPT/TwMGhleNOHZHI=; b=Az7EsCjSpEUpsXjVHklr4ibz95NXdzKv2vMK9ckwPlp43oT7as0XZHgUQho6VRXZRZ MK8+jpR9aCewSdoKdpZQW1LnZbRhFun6AiwcC3qK/RPiIjjc9gnPOyE0rey6GfwrUlKz UT4sUIrJlMzbUOdYVkIWBNN/Gd1wKwCY5l1bDqI3vUZkk/Dc9Y94J8/WXJdX5IDQ/H6w 9DXQzgchlsRhETBzX/Tm/skOKqL0vlHjMpvfE5CptyfHwxUjzrHqMg4/+4TuPVWRWR+4 G+vxnpgq5goRQF7PdXzvyIe31det4CcggDo5AxrlwDYJ5JjzaO/Mz94j47RdXI4GuJz/ qxmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-13691-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13691-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id fu15-20020a170907b00f00b00a27cdc50276si821307ejc.628.2023.12.31.03.08.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Dec 2023 03:08:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13691-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-13691-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13691-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 81ACB1F21664 for ; Sun, 31 Dec 2023 11:08:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BB84611B; Sun, 31 Dec 2023 11:08:29 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 456D533CF for ; Sun, 31 Dec 2023 11:08:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ellerman.id.au Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4T2xDl4xm1z4x3G; Sun, 31 Dec 2023 22:08:23 +1100 (AEDT) From: Michael Ellerman To: npiggin@gmail.com, Haoran Liu Cc: christophe.leroy@csgroup.eu, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: <20231127144108.29782-1-liuhaoran14@163.com> References: <20231127144108.29782-1-liuhaoran14@163.com> Subject: Re: [PATCH] powerpc/powernv: Add error handling to opal_prd_range_is_valid Message-Id: <170402086356.3311386.1240109605547008356.b4-ty@ellerman.id.au> Date: Sun, 31 Dec 2023 22:07:43 +1100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Mon, 27 Nov 2023 06:41:08 -0800, Haoran Liu wrote: > In the opal_prd_range_is_valid function within opal-prd.c, > error handling was missing for the of_get_address call. > This patch adds necessary error checking, ensuring that the > function gracefully handles scenarios where of_get_address fails. > > Applied to powerpc/next. [1/1] powerpc/powernv: Add error handling to opal_prd_range_is_valid https://git.kernel.org/powerpc/c/e6beb47edb89ca9dc8906515e2dfbeb5913312c8 cheers