Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp791254rdb; Sun, 18 Feb 2024 11:58:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWol7ds90pklxNBrkdKMKNCrM+67/qQYiQ3LzWoO3i3KUvpCgiEuQFoAi39N6b4kQ4jqbLvP0PZTc/c03sgEQyI6I7Sj2B1q/81wWQtrA== X-Google-Smtp-Source: AGHT+IGIeHc/EHGL5C+uiIv3Qhd5ZSUlrDQZJaysiaIUtI9L7clxldB6SPNp4sTjdInFvXRWk6UW X-Received: by 2002:a17:903:2301:b0:1da:1b31:fc1b with SMTP id d1-20020a170903230100b001da1b31fc1bmr12957146plh.39.1708286334828; Sun, 18 Feb 2024 11:58:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708286334; cv=pass; d=google.com; s=arc-20160816; b=pnyRg3tF0kL5QWhDzYEuDFSxjB9ncGQpuBeLLIGc5hgidtGkDh+1gJQ8wCv1CJp1ud sfIGgkLZQlnJN/pF9tDzf4DGUE8lV3Xn6dvH9AiImwO/+lHf1QsIZkTxF2ow9w3kW79+ RGGeLiev299ZWallbsMIexLEKz3K+9NbFcYNnQjn0IC2uslws571fdMBUn3aGKt9OFos 7TKRS/GjGdV5YCKMdapmf4AmtAX0+dn/o1b3C4VUOCk4ZlPob301ojY3O6unzo8tL2lC tQeoSRiploP320/NGTnhL+VGHErl4FUMT31H6Mjui72iyARwgythS1FaJ9IdvScsv03g O70w== ARC-Message-Signature: i=2; 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:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=1TIkhbGZWUbi2CMyuYC1zHRmB3sv78+cLqqJ5ekH0lE=; fh=eJYkfHtUJNS5ggLRXKsX/vTpHZ04fCd4O7PVP30KW6U=; b=1EVN25u7kGP9WaYXs0Ec2VMOMNPIQSv1v+TDDSPncm32NZ7GpHgDd52ZnG23MP7mHE fuqX+QRHGaPB2ruIokGIZK/l1YS2ha0tNvQjLT6dUwUoN1F1GzD16meXmUe68J4orusX NGpK+SKJlSVARxreJFsc1v0UgUEoP25z61Dd/DBa8BEgUf8si5aXCUMMfv6fsfDodDzS UMUohd0Ha/GhcTJ8oN6Y2VoM9N08uqZuXePwjQqkQFTKbfqWLKhfbHd3PG3MHhDkjnQc UM3fEav443W8SZfBavtAtuy6EjiAgbjBJVwbAv64GqaLLDHt3q2PcZojl19/tuuWyJqn xl2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VeWCQl+c; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-70563-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ma3-20020a170903094300b001da0c29382csi2192504plb.401.2024.02.18.11.58.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 11:58:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70563-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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VeWCQl+c; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-70563-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 855EA281B56 for ; Sun, 18 Feb 2024 19:58:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BEBDD71B42; Sun, 18 Feb 2024 19:58:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="VeWCQl+c"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="drctSBOo" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 80FBD6F060 for ; Sun, 18 Feb 2024 19:58:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708286329; cv=none; b=JlxmZFTPq9IyfjRvCWG07fVLca3vqq8WL14oZaAwXBsx1+jtaOA6VkWxSDA0ZhS8LjUVWQhW3o/QN1L/n0WnHvweN3xGNqjo8oX/7aBA0j5U4yRp/JOUMXQLZdYEPql/1liU3Eqird/1Hlh/rxRllwBUJYO5dAzTXtzo5zkEIok= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708286329; c=relaxed/simple; bh=LVq7wL5w79lHBLiMpD3VDi5h8Q2ZtCNMBxs7RuaxEWg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=NhZt6mCSNvZgh/h88rfLOM7zXYGs3XvzkQ67zTv9ed1Mai4W4IHMXYQcJ1O0Z3M31WWD7QU+palteFKDNmLb50R5khg7dvupVbZEV13heRxa1dNZ5deYQ2YdJe+zyZmepcbTSgL3Qw8vYrjvCKFCwBJtO3bZvFjXwNTR5x+P/kg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=VeWCQl+c; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=drctSBOo; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708286325; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1TIkhbGZWUbi2CMyuYC1zHRmB3sv78+cLqqJ5ekH0lE=; b=VeWCQl+c9hJoUJ4b6+6B7ZZq/HPBCmR6V1VCu4PqNsMkbqahjPCBd1nl3m43x1TyQl9avB ytfOKr3eSdCmwrQiEKMm7nWcVokHb3LtmPSncIpIdXAIrs+ft+OMqcNP/5uscz9MDypioy aEPb3VO2pUdzqm3rw7cyka1/iZCeZ0wc6P7zpViI8JPqrhmd8VYsvQ4Kh0tSNx5mjd59x/ Fmum4Az7cnQydasHhZVcJ+m4DpS4XP+o33Mcw4bFXVRiSfgMqye2WoEK6KcoihMxCRtv3Z Wge0GpQWJg+kWp5cuCK2X/V9BBIMsPMHFY4RjdIlLrI3gzLppD7pBkyvwtkHHg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708286325; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1TIkhbGZWUbi2CMyuYC1zHRmB3sv78+cLqqJ5ekH0lE=; b=drctSBOolE06j7lN0n6V7r5M2yMlqxRpP5ChXrgl3Zijr9hI+9arVHJBWRwiCXHqx+bq/b SqxsHCWzODTwWpBw== To: "chenjun (AM)" , "linux-kernel@vger.kernel.org" Cc: "xuqiang (M)" Subject: Re: [PATCH] irqchip/mbigen: Fix incorrect null pointer check In-Reply-To: <45fe193a87fc4a5cb2e3233386b47dc7@huawei.com> References: <20240129130003.18181-1-chenjun102@huawei.com> <874jecisku.ffs@tglx> <45fe193a87fc4a5cb2e3233386b47dc7@huawei.com> Date: Sun, 18 Feb 2024 20:58:44 +0100 Message-ID: <87a5nxbl3f.ffs@tglx> 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: quoted-printable On Sun, Feb 18 2024 at 03:13, chenjun (AM) wrote: > =E5=9C=A8 2024/2/13 18:09, Thomas Gleixner =E5=86=99=E9=81=93: >> On Mon, Jan 29 2024 at 21:00, Chen Jun wrote: >>=20 >> That's not about an incorrect NULL pointer check. That's about using a >> function which is guaranteed to return NULL on your platform, no? >>=20 >>> bus_get_dev_root(&platform_bus_type) always returns NULL. >>=20 >> Lacks an explanation why this always returns NULL. >>=20 > > Thank you for the reply. > > bus_get_dev_root returns sp->dev_root set in subsys_register. > And subsys_register is not called by platform_bus_init. > > So, for platform_bus_type, bus_get_dev_root always returns NULL. Please add this information to the change log. Thanks, tglx