commit | 6ad24f689cb24c599446247d770975dc1b3e3efd | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Jul 07 13:12:10 2020 -0600 |
committer | Bin Meng <bmeng.cn@gmail.com> | Fri Jul 17 14:32:24 2020 +0800 |
tree | eb84642875edd981bf865836d8f69ca61e4ede42 | |
parent | 6ca93159e26ce8d03c5c29dab6707ee70397be56 [diff] |
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: Simon Glass <sjg@chromium.org> Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>