diff options
author | Joel Sherrill <joel@rtems.org> | 2023-02-10 07:55:17 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2023-02-10 07:55:17 -0600 |
commit | 26e1610833a9f7c77409bbed99bf5015387438c6 (patch) | |
tree | 8839a6f9a8ca0405fd6eb92628f1df38286df696 /cpukit/libmisc/shell | |
parent | libmisc/serdbg: Remove obsolete serial debug (diff) | |
download | rtems-26e1610833a9f7c77409bbed99bf5015387438c6.tar.bz2 |
shell/main_pci.c: Address Dereference after null error check
Coverity CID 1399716
Closes #431.
Diffstat (limited to 'cpukit/libmisc/shell')
-rw-r--r-- | cpukit/libmisc/shell/main_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libmisc/shell/main_pci.c b/cpukit/libmisc/shell/main_pci.c index 5946aceb33..4902ed07b9 100644 --- a/cpukit/libmisc/shell/main_pci.c +++ b/cpukit/libmisc/shell/main_pci.c @@ -375,7 +375,7 @@ static int shell_pci_infodev( printf(" PCIID: 0x%04x\n", dev->busdevfun); bus = dev->bus; if (!bus) { - printf(" AT BUS: 0x%x via Host Bridge\n", bus->num); + printf(" AT BUS: via Host Bridge\n"); } else { printf(" AT BUS: 0x%x via Bridge at [%x:%x:%x]\n", bus->num, PCI_DEV_EXPAND(bus->dev.busdevfun)); |