Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp478527rdb; Sat, 17 Feb 2024 19:13:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUPNlzWEUC3cMeJj8sdhnxgwtUf2pfhhZqgXjmE4fI1a31mlltrND7SuZkHGELkUFRLyPBkQlohvSaFNXlvk/7L4WVp+rppMkLp3Cs5BQ== X-Google-Smtp-Source: AGHT+IHiC8w3iAvvvxuyx47HBv0ieAIToa2ktpBUuWHEF2V2AVPLNOOWThr3Wy4Gcc1TWzajFUq8 X-Received: by 2002:a05:6830:1114:b0:6e2:d925:4f20 with SMTP id w20-20020a056830111400b006e2d9254f20mr8735959otq.25.1708226004557; Sat, 17 Feb 2024 19:13:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708226004; cv=pass; d=google.com; s=arc-20160816; b=Alhy2y9B/L0VjuOssoCRqGqtO48krUujPc71982k2hHI09l9dLMsP/moXQ+j4NWa2t ka+FUy0JpWjTp9wNF/wkl+kmyU/MFraK4XjD3mJalAhyWV1coiMdUmyrQOs1tK3TtEqR pYkFVqXgwN9OfGSM2fYp3p5H1pT8cr3UhRuG9TinIx89fpE1QqKctoZhZKsK4GgACm3A uKYRfkMkmeZYqVCMjLC6WUdiVwMtyplmcB0xWWeI5pHfR5C66iRXtBKoPMMfO7MDYV39 16YeryYB443Z38j4kOESdivKTQsWoK2cDUry5IuPFJLfJWjnsakkMAh/CmezVX42bft5 r62w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-language:accept-language :references:message-id:date:thread-index:thread-topic:subject:cc:to :from; bh=NFR/yIQcxyIArvKLP31pSwqdtf4UtNdS02GVt1pyWmM=; fh=4YHMPU27xQXB0P2aeL3f5zNQgrgYp52SFr7NsdSlyGw=; b=Tar07S0zw3slw6vxS/IwP0EQXzqJ6/j2lwJqN0CPsT3YtqUWRLNA0winVSsSWUUyQO YW1Dins96GwHXAjhH7xT4LBlO94KGAkoujDenxpoMLzEdNVaubVYoxcFaD/XrBdZPQ6f 80kepXwl9GKhBqHDJ1UiahYG9/RbFZhbLQZn7MqAjX2G325L7f9szZoZIztU77jc5Ky4 uuVPBFhhI6G9DVsXGxxJjeDaUQkqBZAujqfuX7NfXZ/RAizt2PX3Xdd8DYpJ2dN13wEu ugXo9mhUex8FrebsvTMlHgDFzuutCNNSaLCNV+8/O/t+z2gQCxZBMjBumFq3TcA466tE MjNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-70171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70171-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id cb15-20020a056a02070f00b005dc8702f0aesi2372586pgb.291.2024.02.17.19.13.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 19:13:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-70171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70171-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com 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 41859282FCF for ; Sun, 18 Feb 2024 03:13:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9AF4D17F8; Sun, 18 Feb 2024 03:13:18 +0000 (UTC) Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (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 2DB7415C0 for ; Sun, 18 Feb 2024 03:13:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708225998; cv=none; b=T0dwoh9tNgHyzMrFaRLpMcLIWqMXcmkgGREuagElxGFXGMnxu288EtlesX5iW7GyanetibA4amE8kDdEH4zlYwOVVQ2y6CABqkv0ro5iL+ukd/ktiaD3SMal8voyqc4emHlCehlTNKY0Oey8e2i41L8MYxsHhx674FdzQezWTng= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708225998; c=relaxed/simple; bh=BAzZDtWxmPKCYWUkBPM7TWSay365QqhhOeFGtf5/nX8=; h=From:To:CC:Subject:Date:Message-ID:References:Content-Type: MIME-Version; b=RuDKaf2OgmTqxaH6zlyrz3lk2ZzifKxL9zXAA4XXDSsItVmnRc3cGOn+iYx+H2nqAGtz9eEChzyUdsBgF77WsdcksgjpXmgap7oHkze/l/xubXEUx1nNzjKo+bTWnzuLGftnxPSwkiAzvmQbMXv0SUucUTwEe+qjayZBXj9VoBs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.191 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.234]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4TcrKJ2DB2z1gyx0 for ; Sun, 18 Feb 2024 11:11:00 +0800 (CST) Received: from kwepemd200002.china.huawei.com (unknown [7.221.188.186]) by mail.maildlp.com (Postfix) with ESMTPS id 0ED271400CC for ; Sun, 18 Feb 2024 11:13:06 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by kwepemd200002.china.huawei.com (7.221.188.186) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.1258.28; Sun, 18 Feb 2024 11:13:05 +0800 Received: from dggpemm500006.china.huawei.com ([7.185.36.236]) by dggpemm500006.china.huawei.com ([7.185.36.236]) with mapi id 15.01.2507.035; Sun, 18 Feb 2024 11:13:05 +0800 From: "chenjun (AM)" To: Thomas Gleixner , "linux-kernel@vger.kernel.org" CC: "xuqiang (M)" Subject: Re: [PATCH] irqchip/mbigen: Fix incorrect null pointer check Thread-Topic: [PATCH] irqchip/mbigen: Fix incorrect null pointer check Thread-Index: AQHaUrPy4yFabhAFLUSb7iNXYyazpg== Date: Sun, 18 Feb 2024 03:13:05 +0000 Message-ID: <45fe193a87fc4a5cb2e3233386b47dc7@huawei.com> References: <20240129130003.18181-1-chenjun102@huawei.com> <874jecisku.ffs@tglx> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 =1B$B:_=1B(B 2024/2/13 18:09, Thomas Gleixner =1B$B On Mon, Jan 29 2024 at 21:00, Chen Jun wrote:=0A= > =0A= > That's not about an incorrect NULL pointer check. That's about using a=0A= > function which is guaranteed to return NULL on your platform, no?=0A= > =0A= >> bus_get_dev_root(&platform_bus_type) always returns NULL.=0A= > =0A= > Lacks an explanation why this always returns NULL.=0A= > =0A= =0A= Thank you for the reply.=0A= =0A= bus_get_dev_root returns sp->dev_root set in subsys_register.=0A= And subsys_register is not called by platform_bus_init.=0A= =0A= So, for platform_bus_type, bus_get_dev_root always returns NULL.=0A= =0A= > Thanks=0A= > =0A= > tglx=0A= > =0A= > =0A= =0A=