[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250318062946.2udvt5uryf6y2jmk@thinkpad>
Date: Tue, 18 Mar 2025 11:59:46 +0530
From: Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>
To: Bo Sun <Bo.Sun.CN@...driver.com>
Cc: Bjorn Helgaas <bhelgaas@...gle.com>, Vidya Sagar <vidyas@...dia.com>,
linux-pci@...r.kernel.org, linux-kernel@...r.kernel.org,
Kevin Hao <kexin.hao@...driver.com>,
Bjorn Helgaas <helgaas@...nel.org>
Subject: Re: [PATCH v2 2/2] PCI: of_property: Omit 'bus-range' property if no
secondary bus
On Tue, Mar 11, 2025 at 09:52:29PM +0800, Bo Sun wrote:
> The previous implementation of of_pci_add_properties() and
> of_pci_prop_bus_range() assumed that a valid secondary bus is always
> present, which can be problematic in cases where no bus numbers are
> assigned for a secondary bus. This patch introduces a check for a valid
> secondary bus and omits the 'bus-range' property if it is not available,
> preventing dereferencing the NULL pointer.
>
This definitely needs a Fixes tag and should be backported.
- Mani
--
மணிவண்ணன் சதாசிவம்
Powered by blists - more mailing lists