lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ