mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
shell/main_pci.c: Address Dereference after null error check
Coverity CID 1399716 Closes #431.
This commit is contained in:
@@ -375,7 +375,7 @@ static int shell_pci_infodev(
|
|||||||
printf(" PCIID: 0x%04x\n", dev->busdevfun);
|
printf(" PCIID: 0x%04x\n", dev->busdevfun);
|
||||||
bus = dev->bus;
|
bus = dev->bus;
|
||||||
if (!bus) {
|
if (!bus) {
|
||||||
printf(" AT BUS: 0x%x via Host Bridge\n", bus->num);
|
printf(" AT BUS: via Host Bridge\n");
|
||||||
} else {
|
} else {
|
||||||
printf(" AT BUS: 0x%x via Bridge at [%x:%x:%x]\n", bus->num,
|
printf(" AT BUS: 0x%x via Bridge at [%x:%x:%x]\n", bus->num,
|
||||||
PCI_DEV_EXPAND(bus->dev.busdevfun));
|
PCI_DEV_EXPAND(bus->dev.busdevfun));
|
||||||
|
|||||||
Reference in New Issue
Block a user