Skip to content
Commit 20349781 authored by Simon Glass's avatar Simon Glass Committed by Bin Meng
Browse files

pci: Avoid a crash in device_is_on_pci_bus()



This function cannot currently be called on the root node. Add a check
for this as well as a test.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarWolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 58a6ccd3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment