Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp56924rdb; Thu, 21 Dec 2023 02:42:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IHSNN1HoUtrrBB4psRnkv6nwVxHLyQR6xh4voexqHG7tGjouPX6aSycjPN7N1htTeCiH158 X-Received: by 2002:a17:903:2304:b0:1d3:beea:972b with SMTP id d4-20020a170903230400b001d3beea972bmr5319803plh.93.1703155328359; Thu, 21 Dec 2023 02:42:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703155328; cv=none; d=google.com; s=arc-20160816; b=JLem36T6HLyp53sg6QRvkA9Mmpcqt4y4H38Qen2HTicSIV6botGAtHz63DUAZFNjcZ slS1VH9ihXrmUFzteFSaLcwJUXgu37aNBufjBgSY4Zq7JmhPLj2POEDxR5YtVtawqiMi Fyn1dRMa8EqZSuWZnEEawOz8rpLWaNJpHhEFbG2GY9AC2206nWqVkz7EYTAMDD8fRxSK YaOz4TtQ4fS2QvIrYpqQqmx6IHqZAGHwvP7Sc39Axq7icEt8CrKM9mrdggw1oS92zyRH 8JtuvK8smthEmshAPNQvinDRptMKb9C35drf7v+wKJsnJmdv9EON2wGtQpfL0PGfgx9A kKKA== 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=IKEXOkhbbS1iXg17D3+MzOMMNBiOX0yeh8RJ14BDMQM=; fh=B4dilkQZ+/Uq0KjFGH6xSK3/yuieVdE1icjUU/jYbjs=; b=A9MSe1czPEhcij0qDV9e2vjIhILDp74Wft4+VoZRBJNaROJ6T+p8Ch4jlQAMOyxw75 Tv3q/tzhfHHtKcoxoV829O3dKzjFb7uduQk14of/oUOR5MHzhJCUOAS/gLZzPy3iQKpj w51K+BhJX4e9mfg8krs8S/BwmQPF2dW5tmemuBBSx1xOJJLGhjwWulur/RjxCGMTBCwq JUjhKHouqRlqF5t19MjA5BMI/k++bDffFIerQ4XjpMrDJJI1RfKsgl3/DALPhWTkyqET wCZkt0WXjzLnmdAxWFjeFMLBPL/tNKvpUUgLVpQgf23S7FBJ+JTm6NavZ67tW1CsxVOO JKHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-8223-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8223-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ja10-20020a170902efca00b001d3da9ce5e0si1260940plb.467.2023.12.21.02.42.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 02:42:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8223-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-8223-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8223-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0FB8B281541 for ; Thu, 21 Dec 2023 10:42:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 54FB673192; Thu, 21 Dec 2023 10:40:58 +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 5047A6EB4D for ; Thu, 21 Dec 2023 10:40:56 +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 4Swn5X5kx6z4x5m; Thu, 21 Dec 2023 21:40:48 +1100 (AEDT) From: Michael Ellerman To: npiggin@gmail.com, christophe.leroy@csgroup.eu, benh@kernel.crashing.org, rmclure@linux.ibm.com, Kunwu Chan Cc: kunwu.chan@hotmail.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: <20231127030755.1546750-1-chentao@kylinos.cn> References: <20231127030755.1546750-1-chentao@kylinos.cn> Subject: Re: [PATCH] powerpc/powernv: Add a null pointer check in opal_event_init Message-Id: <170315510017.2192823.1023474611305733746.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 Mon, 27 Nov 2023 11:07:55 +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: Add a null pointer check in opal_event_init https://git.kernel.org/powerpc/c/8649829a1dd25199bbf557b2621cedb4bf9b3050 cheers