From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Mon, 29 Jun 2020 13:39:32 +0800 Subject: [PATCH v3 33/35] pci: Avoid a crash in device_is_on_pci_bus() In-Reply-To: <20200614025523.40183-17-sjg@chromium.org> References: <20200614025523.40183-1-sjg@chromium.org> <20200614025523.40183-17-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Jun 14, 2020 at 10:55 AM Simon Glass wrote: > > This function cannot currently be called on the root node. Add a check > for this as well as a test. > > Signed-off-by: Simon Glass > Reviewed-by: Wolfgang Wallner > --- > > (no changes since v1) > > include/dm/device.h | 2 +- > test/dm/pci.c | 14 ++++++++++++++ > 2 files changed, 15 insertions(+), 1 deletion(-) > Reviewed-by: Bin Meng