[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <45fe193a87fc4a5cb2e3233386b47dc7@huawei.com>
Date: Sun, 18 Feb 2024 03:13:05 +0000
From: "chenjun (AM)" <chenjun102@...wei.com>
To: Thomas Gleixner <tglx@...utronix.de>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>
CC: "xuqiang (M)" <xuqiang36@...wei.com>
Subject: Re: [PATCH] irqchip/mbigen: Fix incorrect null pointer check
在 2024/2/13 18:09, Thomas Gleixner 写道:
> On Mon, Jan 29 2024 at 21:00, Chen Jun wrote:
>
> 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?
>
>> bus_get_dev_root(&platform_bus_type) always returns NULL.
>
> Lacks an explanation why this always returns NULL.
>
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.
> Thanks
>
> tglx
>
>
Powered by blists - more mailing lists