Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp57182rdb; Thu, 21 Dec 2023 02:42:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IFctGYKgAw1kJEZuY9ZQgjKw344C39gDG4nZ83AA0gPB5i+Q/XVNNS8Ihp1AjinHs4XHMcE X-Received: by 2002:a17:906:711a:b0:a26:8f24:a038 with SMTP id x26-20020a170906711a00b00a268f24a038mr1117612ejj.45.1703155369015; Thu, 21 Dec 2023 02:42:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703155369; cv=none; d=google.com; s=arc-20160816; b=OxM7HOi7ws2xPYS7I6ViOxQMwd2tB4Upm1Lexxi5hoz9QtHfyaCMDilGvhaf3125fo cRRhnv5zFRpAUb5dv0XXrn+I7pKniX4dhWs8xRVJPRzK8xa30RgiE7/Kdesx98dgTQoM ViE9ziF4C4uGHxOlMzK2nzDVcdQ0d05SQLiaPdRJirBmpCCR2S4tuLW7QozoIVhAt4Cv kTN135oS3kvtHP2tQRuNqZ9uB8iOZQ56JWbtRrXm5Jc5f+fQuO6ZUbc0hT4PBncsxC9L BTWVU7xFy9rf5JRocJnGPSFr16gAJ71tmn5skPdt/0m8LtlltNXqwaSAdUliemBqChQ5 boww== 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=ipTLRB+xxKdVu2rax54EcTqzZwK7KduZMw6zOb66YtY=; fh=VFlW0b2v1mNKIbn6buLHphAfmNWYNGMGlzQbXuSdxYY=; b=wwsgMJF+NpCY16ObWcUoDQwqGxK6PiTcoHqPp+qvSIOHk2R+7SU0LNOR6+9Ctk4e9I KN3G+UgLCpMInIBkYW7/+1H36qhhbNTJFlpmOfnoYfh9tbd2ai3yD5pQX3EskFK4gi/e IKhkAbofks8YXiyxlWTbq8P8/Gj5rzJDvbm2FhflQnbVcPNXkAcH7p4uDgVS3pLu9Ktb 4g/kcI6WbmVA4bjoTsBxuSLdAVJ53nxCTfRcF1JLR8Lp1rB6TvLMm5wgNxJQJEFY7Sbr Hr0mFqDtpZLBIqON6nuDbQu1LQ8AI6H+76u3hexpQlVYtaorsfnTCEMxF9syatevZsmi hl2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-8225-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8225-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 a1-20020a1709063a4100b00a23334f9a18si740700ejf.877.2023.12.21.02.42.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 02:42:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8225-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-8225-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8225-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 C26551F2501B for ; Thu, 21 Dec 2023 10:42:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 12FC074E18; Thu, 21 Dec 2023 10:41:00 +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 395E76EB63 for ; Thu, 21 Dec 2023 10:40:57 +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 4Swn5Y4NDZz4xMv; Thu, 21 Dec 2023 21:40:49 +1100 (AEDT) From: Michael Ellerman To: npiggin@gmail.com, christophe.leroy@csgroup.eu, robh@kernel.org, Kunwu Chan Cc: kunwu.chan@hotmail.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: <20231126095739.1501990-1-chentao@kylinos.cn> References: <20231126095739.1501990-1-chentao@kylinos.cn> Subject: Re: [PATCH] powerpc/powernv: Fix null pointer dereference in opal_powercap_init Message-Id: <170315510017.2192823.14859661011576735714.b4-ty@ellerman.id.au> Date: Thu, 21 Dec 2023 21:38:20 +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 Sun, 26 Nov 2023 17:57:39 +0800, Kunwu Chan wrote: > kasprintf() returns a pointer to dynamically allocated memory > which can be NULL upon failure. > > Applied to powerpc/next. [1/1] powerpc/powernv: Fix null pointer dereference in opal_powercap_init https://git.kernel.org/powerpc/c/e123015c0ba859cf48aa7f89c5016cc6e98e018d cheers